PUT api/Works/{workorder}/Terminate
Terminate Work Order
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
workorder |
|
string |
Required |
Body Parameters
TerminateWOName | Description | Type | Additional information |
---|---|---|---|
Start |
|
date |
Required |
End |
|
date |
Required |
Component |
|
integer |
None. |
Symptom |
|
string |
None. |
Cause |
|
string |
None. |
Performed |
This maybe required, depending on ManWinWin preferences |
string |
None. |
Record |
This maybe required, depending on Maintenance Schedule periodicity |
decimal number |
None. |
DownTimes |
|
Collection of DownTimeTerminate |
None. |
Request Formats
Sample:
{ "Start": "2024-11-14T16:37:49.8373372+00:00", "End": "2024-11-14T16:37:49.8373372+00:00", "Component": 1, "Symptom": "sample string 4", "Cause": "sample string 5", "Performed": "sample string 6", "Record": 1.1, "DownTimes": [ { "Id": 1, "Entity": { "Code": "sample string 1", "Type": "Item" }, "From": "2024-11-14T16:37:49.8373372+00:00", "To": "2024-11-14T16:37:49.8373372+00:00", "DownState": true }, { "Id": 1, "Entity": { "Code": "sample string 1", "Type": "Item" }, "From": "2024-11-14T16:37:49.8373372+00:00", "To": "2024-11-14T16:37:49.8373372+00:00", "DownState": true } ] }
Sample:
<TerminateWO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Trabalhos"> <Cause>sample string 5</Cause> <Component>1</Component> <DownTimes> <DownTimeTerminate> <DownState>true</DownState> <Entity> <Code>sample string 1</Code> <Type>Item</Type> </Entity> <From>2024-11-14T16:37:49.8373372+00:00</From> <Id>1</Id> <To>2024-11-14T16:37:49.8373372+00:00</To> </DownTimeTerminate> <DownTimeTerminate> <DownState>true</DownState> <Entity> <Code>sample string 1</Code> <Type>Item</Type> </Entity> <From>2024-11-14T16:37:49.8373372+00:00</From> <Id>1</Id> <To>2024-11-14T16:37:49.8373372+00:00</To> </DownTimeTerminate> </DownTimes> <End>2024-11-14T16:37:49.8373372+00:00</End> <Performed>sample string 6</Performed> <Record>1.1</Record> <Start>2024-11-14T16:37:49.8373372+00:00</Start> <Symptom>sample string 4</Symptom> <WorkOrder>sample string 1</WorkOrder> </TerminateWO>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkOrder" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Start" 2024-11-14T16:37:49.8373372+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="End" 2024-11-14T16:37:49.8373372+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Component" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Symptom" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Cause" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Performed" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Record" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[0].Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[0].Entity.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[0].Entity.Type" Item --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[0].From" 2024-11-14T16:37:49.8373372+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[0].To" 2024-11-14T16:37:49.8373372+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[0].DownState" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[1].Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[1].Entity.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[1].Entity.Type" Item --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[1].From" 2024-11-14T16:37:49.8373372+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[1].To" 2024-11-14T16:37:49.8373372+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DownTimes[1].DownState" True --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. |