readyDocs Open the appOpen the app

Conversation actions

#Assign a conversation

Replaces the thread’s assignees.

Parameters

idinteger, pathRequired
The conversation id.
assignee_idsinteger[]
A JSON array of team member ids (Settings → Team). Send [] to unassign. A body with neither assignee_ids nor assigned_to is refused with 400 invalid_assignee_ids and nothing changes. The first id is the primary owner and also becomes the contact’s owner.
base_idsinteger[]
The assignees you last read with Get a conversation’s assignees. If the thread’s assignees changed since (order doesn’t matter), nothing is saved and you get 409 ASSIGNEES_CHANGED. Leave it out to save without the check.
Returns
assignee_idsinteger[]
The new assignees, at the top level.
Errors
HTTPCodeWhen
400invalid_assignee_idsThe body has neither assignee_ids nor assigned_to, assignee_ids or base_ids isn’t a list of ids, or assigned_to isn’t an id. Nothing changed. code and error_code both carry it.
400invalid_assigneeAn id isn’t on your team.
404not_foundNo such conversation (lower case here, not CONVERSATION_NOT_FOUND).
409ASSIGNEES_CHANGEDYou sent base_ids and someone changed the assignees since. Nothing was saved. Read the current assignees, then pick again.

#Set a conversation’s status

Opens or closes a thread.

Parameters

idinteger, pathRequired
The conversation id.
statusenumRequired
open or closed, or archived, which does what Archive a conversation does: it archives the thread and clears the unread count.
Errors
HTTPCodeWhen
400invalid_statusMissing or unknown status.
404CONVERSATION_NOT_FOUNDNo such conversation, or the key’s user can’t see it. Upper case here, unlike assign.
500CONVERSATION_UPDATE_FAILEDThe change wasn’t saved. Try again.

#Mark a conversation read

Clears the thread’s unread count. No body.

Parameters

idinteger, pathRequired
The conversation id.
Errors
HTTPCodeWhen
404CONVERSATION_NOT_FOUNDNo such conversation, or the key’s user can’t see it. Upper case here, unlike assign.
500CONVERSATION_UPDATE_FAILEDThe change wasn’t saved. Try again.

#Mark a conversation unread

Sets the thread’s unread count to 1. No body.

Parameters

idinteger, pathRequired
The conversation id.
Errors
HTTPCodeWhen
404CONVERSATION_NOT_FOUNDNo such conversation, or the key’s user can’t see it. Upper case here, unlike assign.
500CONVERSATION_UPDATE_FAILEDThe change wasn’t saved. Try again.

#Archive a conversation

Archives the thread and clears its unread count. No body.

Parameters

idinteger, pathRequired
The conversation id.
Errors
HTTPCodeWhen
404CONVERSATION_NOT_FOUNDNo such conversation, or the key’s user can’t see it. Upper case here, unlike assign.
500CONVERSATION_WRITE_FAILEDThe change wasn’t saved. Try again.

#Unarchive a conversation

Brings the thread back to the inbox with status: "open", even if it was closed. No body.

Parameters

idinteger, pathRequired
The conversation id.
Errors
HTTPCodeWhen
404CONVERSATION_NOT_FOUNDNo such conversation, or the key’s user can’t see it. Upper case here, unlike assign.
500CONVERSATION_WRITE_FAILEDThe change wasn’t saved. Try again.

#Star or unstar a conversation

Sets the star on or off. Send starred to say which, so a retry after a timeout can’t undo the change. With no body it toggles instead.

Parameters

idinteger, pathRequired
The conversation id.
starredboolean, body
true to star, false to unstar. Optional: leave it out and the call toggles. Anything else is a 400 invalid_starred.
Returns
data.starredinteger
The new value, 1 or 0.
Errors
HTTPCodeWhen
404CONVERSATION_NOT_FOUNDNo such conversation, or the key’s user can’t see it. Upper case here, unlike assign.
500CONVERSATION_UPDATE_FAILEDThe change wasn’t saved. Try again.

#Get a conversation’s assignees

Lists the team members assigned to a thread. The primary owner comes first. Send this list as base_ids when you assign the conversation, so you don’t overwrite a change a teammate made in between.

Parameters

idinteger, pathRequired
The conversation id.
Returns
assignee_idsinteger[]
Team member ids, primary first, at the top level. [] when nobody is assigned.
Errors
HTTPCodeWhen
400invalid_fieldThe id isn’t a whole number.
404not_foundNo such conversation, or the key’s user can’t see it (lower case here, not CONVERSATION_NOT_FOUND).
500ASSIGNEES_READ_FAILEDWe couldn’t read the assignees. Try again.