Skip to main content Link Search Menu Expand Document (external link)

Updated Thu Sep 22nd 2022, 19:00 UTC

Batch Read

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

Multiple conversations in a given filter can be marked read by a user.

Examples

Batch read with IDs

Request

PUT /my_account/conversation_filters/active/conversations/read

Body

{
  "conversations": <%= @conversations.map { |convo| conversation_path(convo) } %>
}
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X PUT /my_account/conversation_filters/active/conversations/read
    -d '{
  "conversations": <%= @conversations.map { |convo| conversation_path(convo) } %>
}'

Response

Status

202

Response Type

No body

Batch read by timestamp

Request

PUT /my_account/conversation_filters/active/conversations/read?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/read?modified_before={rfc3339_timestamp}
    

Response

Status

202

Response Type

No body


© 2022 TextUs