POST
/v1/workspace/sla-policiesPromise a stage an SLA
Admin only. Names the pack page and the stage band it measures, the target and warning in minutes (the warning must be the smaller), and optionally a business-hours calendar: an IANA time zone, the working day as minutes from midnight, and the working days as 0 (Sunday) through 6 (Saturday). A second policy on the same page and stage is refused as a conflict, and a time zone this service cannot load is refused with the name in the message.
Access class: workspace:admin.
Send request
Use the documented inputs to call this endpoint directly.
API serverbase URL
Bearer tokensessionoptional
Stored only in this browser for the session security scheme and reused on every API page in this group.
Request body
application/jsonrequiredbodyoptional
paramsobjectoptional
queryobjectoptional
Responses
201application/json
the action's answer
{
"data": {
"active": true,
"businessHoursOnly": true,
"createdAt": "string",
"createdBy": 1,
"definitionKey": "string",
"id": "",
"stage": "string",
"targetMinutes": 1,
"timezone": "string",
"updatedAt": "string",
"warningMinutes": 1,
"workdayEndMinute": 1,
"workdayStartMinute": 1,
"workdays": [
1
]
}
}dataoptional
defaultapplication/json
a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}errorstringrequired