Discussions

Ask a Question
Back to All

Unable to create a WO when matching the sample.

I have the following request to create a WorkOrder. It matches very closely to the example WoCreateCommand1 here: https://documenter.getpostman.com/view/19494308/UVz1NBwd

{
"Command" : {
"WorkOrder" : {
"Items" : [
{
"Asset" : {
"Id" : redacted
},
"Task" : {
"Id" : redacted
}
}
],
"Contactid": redacted,
"TypeCategory" : 4,
"SubType" : {
"Id" : 262
},
"Customer" : {
"Id" : redacted
}
},
"ComputeSchedule" : true
},
"RequestId" : "TST000",
"Comment": "Created for manual API test"
}

However I get the following error:

{
"ErrorMessage": "{!{Service Request}!} must have contact information defined",
"ErrorCode": "BUSINESS_LOGIC_ERROR",
"TimeStamp": "2024-01-19T21:16:21.1185045Z",
"RequestId": "TST000"
}

This seems to involve specific configuration of the environment I'm calling from the error name. Is there something else I'm missing?

The company I am calling is "Stage KHOV"