This method is used to create the location work order. This method is the last method to be called with the previous optional methods depending on how the calling application works. At a minimum the get job template call must be made and the model return passed into this method call. The others can be called to retrieve the models or hard coded reference numbers can be used. The job template model can be overridden or left as is to accept the configured values. The result from the method is the internal reference for the work order.
Request Content
Example JSON:
{
"property": {
"name": "12 Felix St",
"reference": "PP-00000001",
"externalReference": "12345",
"areas": [
{
"name": "backyard",
"reference": "PA-00000001",
"externalReference": null
}
]
},
"area": {
"name": "backyard",
"reference": "PA-00000001",
"externalReference": null
},
"title": "Location Work Order",
"account": {
"internalReference": "00000018",
"externalReference": null
},
"jobTemplate": {
"jobTemplate": {
"name": "Job Template",
"reference": "JT-00000001",
"externalReference": null
},
"workInstruction": {
"name": "Work Instruction One",
"reference": null,
"externalReference": null
},
"priority": "ROUTINE",
"contractSla": null,
"slowSla": null,
"autoAssignee": {
"name": "System Admin",
"reference": "admin",
"externalReference": null,
"actorType": "OPERATOR"
}
},
"description": “This is a description”,
"approvalReference": "approval1",
"autoAssignee": {
"name": "Supplier with rate card",
"reference": "supplierratecard@email.com",
"externalReference": null,
"actorType": "SUPPLIER"
},
"externalReference": "testExternal",
"nameValues": [
{
"name": "Prop 1",
"value": "Value 1"
}
]
}
Data Params
Success Response Content
Example JSON:
{
"validationErrors": [],
"result": {
"id": {
"id": "WO-00000051"
}
}
}