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": "07f98d04201cdf21f2ef001d",
"orderRef": "1838daf0a7a14935449fb6cf"
}
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. |