Link Search Menu Expand Document

Updated Fri Jun 18th 2021, 16:17 UTC

Batch star conversations in a filter

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

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

Examples

Batch star with IDs

Request

PUT /my_account/conversation_filters/active/conversations/star

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/star
     -d '{json: "body"}' 

Response

Status

202

Response Type

No body

Batch star by timestamp

Request

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

Response

Status

202

Response Type

No body


© 2021 TextUs