Skip to content
gist.link ↗

removeLabel

Mutation Mail API — POST https://mail.api.gist.link/graphql

Detach a label from messages.

mail:mutation:removeLabel

The calling IAM key must hold this permission (or a wildcard that covers it: mail:mutation:* or mail:*) and the access token must have been minted with audience=mail. See Permissions.

type Mutation {
removeLabel(email_uuids: [String!]!, label_uuid: String!): [Email!]!
}
Argument Type Required Description
email_uuids [String!]! Yes —
label_uuid String! Yes —

[Email!]! — see the Mail types reference.

Terminal window
curl https://mail.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation RemoveLabel($email_uuids: [String!]!, $label_uuid: String!) { removeLabel(email_uuids: $email_uuids, label_uuid: $label_uuid) { uuid status subject created_at } }",
"variables": {
"email_uuids": [
"ada@example.com"
],
"label_uuid": "example"
}
}
JSON