Link Search Menu Expand Document

Updated Fri Mar 5th 2021, 12:17 UTC

Batch close conversations in a filter

PUT /:account/conversation_filters/:conversation_filter/conversations/close{?modified_before}

Multiple conversations in a given filter can be closed by a user.

Examples

Batch close with IDs

Request

PUT /my_account/conversation_filters/active/conversations/close

Body

{
   "conversations": ["/conversations/BYoaNE", "/conversations/JYnGLo", "/conversations/6LR9Yj"]
}
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X PUT /my_account/conversation_filters/active/conversations/close
     -d '{json: "body"}' 

Response

Status

202

Response Type

No body

Batch close by timestamp

Request

PUT /my_account/conversation_filters/active/conversations/close?modified_before={rfc3339_timestamp}
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X PUT /my_account/conversation_filters/active/conversations/close?modified_before={rfc3339_timestamp}
    

Response

Status

202

Response Type

No body


© 2021 TextUs