Creates a new reason that agents can select when going inactive (that is, when switching to the Inactive status).
Permissions
---- Permissions:INTEGRATOR ----
Request Parameters
| Parameter | Type | Description |
code | string | Unique code of the inactivity reason |
reasons.locale | string | Two-letter language code |
reasons.name | string | Translation of the reason to the language specified in reasons.locale |
color | string (optional) | RGB, for example, #FFFFFF or #ffffff |
active | boolean (optional) | Status of the reason. Default value: true |
HTTP Request
POST /api/v1/inactivity/reasons HTTP/1.1
Content-Type: application/json
Content-Length: 140
Host: localhost:8080
{
"code" : "123",
"reasons" : [ {
"locale" : "ru",
"name" : "Обучение"
} ],
"color" : "#FFFFFF",
"active" : true
}
Example of a Successful HTTP Response
HTTP/1.1 200 OK
Example of a Failed HTTP Response
This response code is returned when you try to add a new reason over the limit of the number of active reasons.
HTTP/1.1 409 Conflict