Skip to content
gist.link ↗

finalizeAttachment

Mutation Support API — POST https://support.api.gist.link/graphql

Verify a finished attachment upload and get its public URL. Any authenticated user.

support:mutation:finalizeAttachment

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

type Mutation {
finalizeAttachment(nodeId: Int!): Attachment!
}
Argument Type Required Description
nodeId Int! Yes —

Attachment! — see the Support types reference.

Terminal window
curl https://support.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation FinalizeAttachment($nodeId: Int!) { finalizeAttachment(nodeId: $nodeId) { url filename content_type size } }",
"variables": {
"nodeId": 10
}
}
JSON