Bulk Close Threads

Use this method to close threads in bulk based on their internal IDs. You can also pass a comment in the method, and this comment will be applied simultaneously to all the threads that you close. This method can accept not existing and already closed threads. As the result of operation, the system will return a response with 4 different lists of threads:

  • resolved_threads – Threads that are successfully closed by using the method
  • not_existing_threads – Threads that don’t exist in edna Chat Center
  • already_resolved_threads – Threads that are already closed at the moment the method is called
  • not_resolved_due_to_system_error – Open threads that can’t be closed due to a system error

Permissons

----
Permissions:INTEGRATOR
----

HTTP Request

HTTP Request
POST /api/v1/threads/close HTTP/1.1
Content-Type: application/json
Content-Length: 65
Host: localhost: 8080
{
    "threadIds": [
        1,
        2,
        3,
        4,
        5
    ],
    "comment": "comment"
}

Example of a Successful HTTP Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 123
{"resolved_threads":[4,5],"not_existing_threads":[3],"already_resolved_threads":[1],"n
ot_resolved_due_to_system_error":[2]}