Add Inactivity Reasons

Creates a new reason that agents can select when going inactive (that is, when switching to the Inactive status).



Request Parameters

codestringUnique code of the inactivity reason
reasons.localestringTwo-letter language code
reasons.namestringTranslation of the reason to the language specified in reasons.locale
colorstring (optional)RGB, for example, #FFFFFF or #ffffff
activeboolean (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