Batch Close

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 '{
   "conversations": ["/conversations/BYoaNE", "/conversations/JYnGLo", "/conversations/6LR9Yj"]
}'

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


© 2024 TextUs