deleteConversation
Requires an authenticated session.
Deletes a conversation. The caller must have access to it. Needs a signed-in user.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation DeleteConversation($id: String!) {
deleteConversation(id: $id) {
message
success
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation DeleteConversation($id: String!) {\n deleteConversation(id: $id) {\n message\n success\n }\n}",
"variables": {
"id": "string"
}
}
EOF
Variables:
{
"id": "string"
}
Response:
{
"data": {
"deleteConversation": {
"message": "string",
"success": true
}
}
}
deleteConversation(
id: String!
): DeleteResponse!
Arguments
deleteConversation.id ● String! non-null scalar
The ID of the conversation.
Type
DeleteResponse object
The result of a mutation that deletes a record and has nothing left to return.