slas

Update

POST
Updates a draft SLA.

Request

This endpoint expects an object.
id
stringRequired
The SLA's ID.
account_selector
objectOptional
description
stringOptional
Description of the purpose and capabilities of the SLA.
evaluation_period
enumOptional
Specifies the frequency of when the contractually-meaningful evaluation of the SLA happens. The organization for their own information might evaluate the various metrics contained in the policy as often as we can make it feasible for them, but only the evaluation at the end of the evaluation period triggers a compensation and needs to be shared with the customer.
Allowed values: monthlyquarterlyweeklyyearly
name
stringOptional
Human-readable name.
policies
list of objectsOptional
The policies encompassed by this SLA, ordered in decreasing priority, the whole array will be overwritten by the contents of this array.

Response

This endpoint returns an object
sla
object
POST
1curl -X POST https://api.devrev.ai/slas.update \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "id"
6}'
200Successful
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}