slas

List

GET
Lists SLAs matching a filter.

Query parameters

cursorstringOptional
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
limitintegerOptional
The maximum number of SLAs to return. The default is '50'.
modeenumOptional
The iteration mode to use, otherwise if not set, then "after" is used.
Allowed values: afterbefore
statusenumOptional
The SLA statuses the filter matches.
Allowed values: archiveddraftpublished

Response

This endpoint returns an object
slas
list of objects
The list of SLAs.
next_cursor
stringOptional
The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.
prev_cursor
stringOptional
The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.
GET
1curl https://api.devrev.ai/slas.list \
2 -H "Authorization: <apiKey>"
200Retrieved
1{
2 "slas": [
3 {
4 "id": "id",
5 "name": "name",
6 "status": "archived",
7 "created_date": "2023-01-01T12:00:00Z",
8 "description": "description",
9 "display_id": "display_id",
10 "evaluation_period": "monthly",
11 "modified_date": "2023-01-01T12:00:00Z",
12 "policies": [
13 {}
14 ]
15 }
16 ],
17 "next_cursor": "next_cursor",
18 "prev_cursor": "prev_cursor"
19}