Skip to content
gist.link ↗

addCardComment

Mutation Teams API — POST https://teams.api.gist.link/graphql

Comment on a card (max 10,000 chars). Any team member.

teams:mutation:addCardComment

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

type Mutation {
addCardComment(cardId: Int!, body: String!): CardComment!
}
Argument Type Required Description
cardId Int! Yes —
body String! Yes —

CardComment! — see the Teams types reference.

Terminal window
curl https://teams.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation AddCardComment($cardId: Int!, $body: String!) { addCardComment(cardId: $cardId, body: $body) { id card_id body created_at } }",
"variables": {
"cardId": 10,
"body": "example"
}
}
JSON