PUT api/Works/ChangeState/{workorder}
Perform/Approve a Work Order
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
workorder |
The Work Order workorder |
string |
Required |
Body Parameters
PerformApproveWOName | Description | Type | Additional information |
---|---|---|---|
State |
Only accept Performed or Approved state |
StateEx |
Required |
Signature |
base64 Signature, may be required, depending on ManWinWin preferences |
string |
None. |
Request Formats
Sample:
{ "State": 1, "Signature": "sample string 2" }
Sample:
<PerformApproveWO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Trabalhos"> <Signature>sample string 2</Signature> <State>ScheduledGreen</State> <WorkOrder>sample string 1</WorkOrder> </PerformApproveWO>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkOrder" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="State" ScheduledGreen --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Signature" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version |
|
Version |
None. |
Content |
|
HttpContent |
None. |
StatusCode |
|
HttpStatusCode |
None. |
ReasonPhrase |
|
string |
None. |
Headers |
|
Collection of Object |
None. |
RequestMessage |
|
HttpRequestMessage |
None. |
IsSuccessStatusCode |
|
boolean |
None. |