messageThreadArchive Mutation
Description
Archives every message in a conversation, resolved the same way as the messages query. Returns how many were archived. Nothing is deleted — see messageArchive.
mutation messageThreadArchive($threadKey: ID!, $orderRef: ID) {
messageThreadArchive(threadKey: $threadKey, orderRef: $orderRef)
}
Variables
{
"threadKey": "0fd5c0e1be4f20db1eb0393e",
"orderRef": "c8dbfad1a2ce500d54a6195f"
}
Response
{
"messageThreadArchive": "example"
}
Arguments
| Name | Type | Description |
|---|---|---|
threadKey | ID! | Key of the conversation, from the messageThreads query. |
orderRef | ID | Order reference of the conversation when it has one. Takes precedence over threadKey. |