Skip to main content

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​

NameTypeDescription
threadKeyID!Key of the conversation, from the messageThreads query.
orderRefIDOrder reference of the conversation when it has one. Takes precedence over threadKey.

Returns​

String!