Discussions

Ask a Question
Back to all

Recalculate SLA values changing priority through API

When changing the priority on a work order through the API, how do we get the SLA values (Due Date, On Site, etc.) to recalculate automatically?

Our current payload to update the priority calling PUT {{apiLocation}}/api/v1/base/WorkOrder:

{
"Entity": {
"Priority": {
"Id": {{newPriority}}
},
"Id": {{workOrderId}}
},
"Properties": [
"Id",
"Priority.Id"
]
}

Is there additional fields we can include to calculate the SLA values, or call a Command to perform this function?