slas

Create

POST
Creates an SLA in draft status.

Request

This endpoint expects an object.
name
stringRequired
Human-readable name.
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
policies
list of objectsOptional
The policies encompassed by this SLA, ordered in decreasing priority.

Response

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