POST api/Works/Terminated
Create a Terminated Work Order
Request Information
URI Parameters
None.
Body Parameters
TerminatedWOName | Description | Type | Additional information |
---|---|---|---|
Description |
|
string |
Required |
Series |
This may be required, depending on ManWinWin preferences |
string |
None. |
MaintenanceRequest |
Maintenance Request code |
string |
None. |
Allocation |
|
AllocationAsset |
Required |
System |
Ignored if the Allocation.Type is Item |
string |
None. |
WorkType |
|
string |
Required |
ScheduledStart |
|
date |
Required |
Start |
|
date |
Required |
End |
|
date |
Required |
Manager |
This may be required, depending on ManWinWin preferences |
string |
None. |
Planned |
|
string |
None. |
Performed |
|
string |
None. |
Component |
|
integer |
None. |
Symptom |
This may be required, depending on ManWinWin preferences |
string |
None. |
Cause |
This may be required, depending on ManWinWin preferences |
string |
None. |
Urgency |
If empty equals to Normal |
Urgency |
None. |
MaintenancePlan |
|
string |
None. |
UserCode01 |
|
string |
Max length: 50 |
UserCode02 |
|
string |
Max length: 50 |
Request Formats
Sample:
{ "Description": "sample string 1", "Series": "sample string 2", "MaintenanceRequest": "sample string 3", "Allocation": { "Type": "Item", "Code": "sample string 1" }, "System": "sample string 4", "WorkType": "sample string 5", "ScheduledStart": "2024-11-14T16:44:43.4041166+00:00", "Start": "2024-11-14T16:44:43.4041166+00:00", "End": "2024-11-14T16:44:43.4041166+00:00", "Manager": "sample string 9", "Planned": "sample string 10", "Performed": "sample string 11", "Component": 1, "Symptom": "sample string 12", "Cause": "sample string 13", "Urgency": 0, "MaintenancePlan": "sample string 14", "UserCode01": "sample string 15", "UserCode02": "sample string 16" }
Sample:
<TerminatedWO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Trabalhos"> <Allocation xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Type>Item</d2p1:Type> </Allocation> <Cause>sample string 13</Cause> <Component>1</Component> <Description>sample string 1</Description> <End>2024-11-14T16:44:43.4041166+00:00</End> <MaintenancePlan>sample string 14</MaintenancePlan> <MaintenanceRequest>sample string 3</MaintenanceRequest> <Manager>sample string 9</Manager> <Performed>sample string 11</Performed> <Planned>sample string 10</Planned> <ScheduledStart>2024-11-14T16:44:43.4041166+00:00</ScheduledStart> <Series>sample string 2</Series> <Start>2024-11-14T16:44:43.4041166+00:00</Start> <Symptom>sample string 12</Symptom> <System>sample string 4</System> <Urgency>Critical</Urgency> <UserCode01>sample string 15</UserCode01> <UserCode02>sample string 16</UserCode02> <WorkType>sample string 5</WorkType> </TerminatedWO>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Series" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MaintenanceRequest" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Allocation.Type" Item --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Allocation.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="System" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkType" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ScheduledStart" 2024-11-14T16:44:43.4041166+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Start" 2024-11-14T16:44:43.4041166+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="End" 2024-11-14T16:44:43.4041166+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Manager" sample string 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Planned" sample string 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Performed" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Component" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Symptom" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Cause" sample string 13 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Urgency" Critical --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MaintenancePlan" sample string 14 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="UserCode01" sample string 15 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="UserCode02" sample string 16 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
stringResponse Formats
Sample:
"sample string 1"
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--