POST api/Works/Scheduled
Create a Scheduled Work Order
Request Information
URI Parameters
None.
Body Parameters
ScheduledWOName | 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 |
Manager |
This may be required, depending on ManWinWin preferences |
string |
None. |
Planned |
|
string |
None. |
Urgency |
If empty equals to Normal |
Urgency |
None. |
TM |
|
decimal number |
Equal or above: 0 |
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:37:04.1962642+00:00", "Manager": "sample string 7", "Planned": "sample string 8", "Urgency": 0, "TM": 9.1, "MaintenancePlan": "sample string 10", "UserCode01": "sample string 11", "UserCode02": "sample string 12" }
Sample:
<ScheduledWO 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> <Description>sample string 1</Description> <MaintenancePlan>sample string 10</MaintenancePlan> <MaintenanceRequest>sample string 3</MaintenanceRequest> <Manager>sample string 7</Manager> <Planned>sample string 8</Planned> <ScheduledStart>2024-11-14T16:37:04.1962642+00:00</ScheduledStart> <Series>sample string 2</Series> <System>sample string 4</System> <TM>9.1</TM> <Urgency>Critical</Urgency> <UserCode01>sample string 11</UserCode01> <UserCode02>sample string 12</UserCode02> <WorkType>sample string 5</WorkType> </ScheduledWO>
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:37:04.1962642+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Manager" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Planned" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Urgency" Critical --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="TM" 9.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MaintenancePlan" sample string 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="UserCode01" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="UserCode02" sample string 12 --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--