Slas
Assign SLAs
Assigns the SLA to a set of Rev organizations.
AuthorizationBearer <token>
All the DevRev APIs require a token to authenticate the user. Provide Authorization: Bearer <TOKEN>
as a header to every API request.
How do I find my token?
In: header
id?string
The SLA which would be assigned to the Rev organizations. If omitted, the SLA of all the rev organizations referenced will be unset.
Format
id
rev_orgsarray<string>
The Rev organizations to apply the SLA to.
Response Body
curl -X POST "https://api.devrev.ai/slas.assign" \ -H "Content-Type: application/json" \ -d '{ "rev_orgs": [ "REV-AbCdEfGh" ] }'
{
"results": [
{
"error": {
"type": "string",
"message": "string",
"status": 0
},
"rev_org": {
"display_id": "string",
"id": "string",
"display_name": "string"
}
}
]
}
{
"detail": "string",
"message": "string",
"type": "artifact_already_attached_to_a_parent",
"existing_parent": "string",
"is_same": true
}
{
"detail": "string",
"message": "string",
"type": "unauthenticated"
}
{
"detail": "string",
"message": "string",
"type": "forbidden"
}
{
"detail": "string",
"message": "string",
"type": "not_found"
}
{
"detail": "string",
"message": "string",
"type": "too_many_requests",
"retry_after": 0
}
{
"detail": "string",
"message": "string",
"type": "internal_error",
"reference_id": "string"
}
{
"detail": "string",
"message": "string",
"type": "service_unavailable"
}