slas

Transition

POST
Changes the status of an SLA.

Request

This endpoint expects an object.
id
stringRequired
The updated SLA.
status
enumRequired
Status determines how an item can be used. In 'draft' status an item can be edited but can't be used. When 'published' the item can longer be edited but can be used. 'Archived' is read-only.
Allowed values: archiveddraftpublished

Response

This endpoint returns an object
sla
object
POST
1curl -X POST https://api.devrev.ai/slas.transition \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "id",
6 "status": "archived"
7}'
200
Successful
1{
2 "sla": {
3 "id": "id",
4 "name": "name",
5 "status": "archived",
6 "compensation": {
7 "compensation": {
8 "key": "value"
9 }
10 },
11 "created_date": "2023-01-01T12:00:00Z",
12 "description": "description",
13 "display_id": "display_id",
14 "evaluation_period": "monthly",
15 "modified_date": "2023-01-01T12:00:00Z",
16 "policies": [
17 {}
18 ]
19 }
20}