Skip to content
gist.link ↗

finalizeChatAttachment

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

Finalize an uploaded chat attachment; returns the value for SendMessageInput.attachments.

teams:mutation:finalizeChatAttachment

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 {
finalizeChatAttachment(nodeId: Int!): Attachment!
}
Argument Type Required Description
nodeId Int! Yes —

Attachment! — 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 FinalizeChatAttachment($nodeId: Int!) { finalizeChatAttachment(nodeId: $nodeId) { url filename content_type size } }",
"variables": {
"nodeId": 10
}
}
JSON