Assign Threads to Agents

Assigns a thread to an agent based on their userId or login in edna Chat Center (you need to specify either one of the parameters).

Permissions

  ----
  Permissions:INTEGRATOR
  ----

Request Parameters

ParameterTypeDescription
userIdlong Agent’s internal ID in edna Chat Center
loginstring  Agent’s login in edna Chat Center

HTTP Request

PUT /api/v1/threads/1/assign HTTP/1.1
Content-Type: application/json
Authorization: Bearer <integrator_token>
Content-Length: 39
Host: localhost: 8080
{
    "userId": 1,
    "login": null
}

Example of a Successful HTTP Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers

Failed HTTP Responses

If the thread is already closed, the 400 status code will be returned.