• About
    • For Developers
    • Authentication
    • Pagination
    • Versioning
    • Rate Limits
    • Errors
  • API Reference
    • Getting started
    • Changelog
  • Guides
    • Webhooks
    • Restricted messages on a timeline
    • Object customization
    • Custom objects
  • SDKs
    • Push notifications for mobile
  • Snap-in development
    • Concepts
    • Development best practices
    • Locally testing snap-ins
    • Handling errors and retrying
    • Debugging
    • Quotas and limits
    • Upgrade snap-ins
    • Code Samples
    • Marketplace listings
  • AirSync
    • Getting started
    • Examples of snap-ins
    • Deploy to organization
    • Publish to the marketplace
    • MCP integration
    • Common issues
    • Supported DevRev object types
API Referenceslas

Transition SLAs

POST
https://api.devrev.ai/slas.transition
POST
/slas.transition
1curl -X POST https://api.devrev.ai/slas.transition \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "string",
6 "status": "archived"
7}'
Try it
1{
2 "sla": {
3 "id": "string",
4 "name": "string",
5 "status": "archived",
6 "account_filter": {},
7 "compensation": {},
8 "created_by": {
9 "display_id": "string",
10 "id": "string",
11 "display_name": "string",
12 "display_picture": {
13 "display_id": "string",
14 "id": "string",
15 "file": {
16 "type": "string",
17 "name": "string",
18 "size": 1
19 }
20 },
21 "email": "string",
22 "full_name": "string",
23 "state": "active"
24 },
25 "created_date": "2023-01-01T12:00:00.000Z",
26 "description": "string",
27 "display_id": "string",
28 "evaluation_period": "monthly",
29 "modified_by": {
30 "display_id": "string",
31 "id": "string",
32 "display_name": "string",
33 "display_picture": {
34 "display_id": "string",
35 "id": "string",
36 "file": {
37 "type": "string",
38 "name": "string",
39 "size": 1
40 }
41 },
42 "email": "string",
43 "full_name": "string",
44 "state": "active"
45 },
46 "modified_date": "2023-01-01T12:00:00.000Z",
47 "policies": [
48 {}
49 ],
50 "sla_type": "external"
51 }
52}
Changes the status of an SLA.

Headers

AuthorizationstringRequired
Bearer authentication of the form `Bearer <token>`, where token is your auth token.

Request

This endpoint expects an object.
idstringRequiredformat: "id"
The updated SLA.
statusenumRequired
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:

Response

Success.
slaobject

Errors

Was this page helpful?
Previous

Update SLA

Next
Built with
Success.

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.

Bearer authentication of the form Bearer <token>, where token is your auth token.