PATCH api/Works/{workorder}
Edit Work Order details
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
workorder |
|
string |
Required |
Body Parameters
WorkEditDetailsName | Description | Type | Additional information |
---|---|---|---|
Description |
|
string |
Max length: 255 |
Manager |
|
string |
None. |
ScheduledEnd |
Only if State is Scheduled |
date |
None. |
Start |
Only if State is In Progress or Not Performed |
date |
None. |
End |
Only if State is Terminated or Not Performed |
date |
None. |
Planned |
|
string |
None. |
Performed |
|
string |
None. |
Component |
|
integer |
None. |
Symptom |
|
string |
None. |
Cause |
|
string |
None. |
PendingWorkReasonId |
Only if State is In Progress |
integer |
None. |
UserCode01 |
|
string |
None. |
UserCode02 |
|
string |
None. |
Request Formats
Sample:
{ "Description": "sample string 2", "Manager": "sample string 3", "ScheduledEnd": "2024-11-14T16:45:59.498624+00:00", "Start": "2024-11-14T16:45:59.498624+00:00", "End": "2024-11-14T16:45:59.498624+00:00", "Planned": "sample string 4", "Performed": "sample string 5", "Component": 1, "Symptom": "sample string 6", "Cause": "sample string 7", "PendingWorkReasonId": 1, "UserCode01": "sample string 8", "UserCode02": "sample string 9" }
Sample:
<WorkEditDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Trabalhos"> <Cause>sample string 7</Cause> <Component>1</Component> <Description>sample string 2</Description> <End>2024-11-14T16:45:59.498624+00:00</End> <Manager>sample string 3</Manager> <PendingWorkReasonId>1</PendingWorkReasonId> <Performed>sample string 5</Performed> <Planned>sample string 4</Planned> <ScheduledEnd>2024-11-14T16:45:59.498624+00:00</ScheduledEnd> <Start>2024-11-14T16:45:59.498624+00:00</Start> <Symptom>sample string 6</Symptom> <UserCode01>sample string 8</UserCode01> <UserCode02>sample string 9</UserCode02> <WorkOrder>sample string 1</WorkOrder> </WorkEditDetails>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkOrder" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Manager" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ScheduledEnd" 2024-11-14T16:45:59.4986240+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Start" 2024-11-14T16:45:59.4986240+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="End" 2024-11-14T16:45:59.4986240+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Planned" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Performed" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Component" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Symptom" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Cause" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PendingWorkReasonId" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="UserCode01" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="UserCode02" sample string 9 --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. |