Skip to content
gist.link ↗

updateChannel

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

Update a channel’s name/topic. Any team member.

teams:mutation:updateChannel

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 {
updateChannel(id: Int!, input: UpdateChannelInput!): Channel!
}
Argument Type Required Description
id Int! Yes —
input UpdateChannelInput! Yes —

Channel! — 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 UpdateChannel($id: Int!, $input: UpdateChannelInput!) { updateChannel(id: $id, input: $input) { id name created_at updated_at } }",
"variables": {
"id": 10,
"input": {
"name": "Example",
"topic": "example"
}
}
}
JSON