Skip to content
gist.link ↗

createAttachmentUpload

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

Request a presigned upload for a ticket attachment. The file is stored in Drive’s permanent read-only “support” folder and served anonymously at a stable hard-to-guess URL. Any authenticated user.

support:mutation:createAttachmentUpload

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 {
createAttachmentUpload(filename: String!, contentType: String, sizeBytes: Int): AttachmentUploadTicket!
}
Argument Type Required Description
filename String! Yes —
contentType String No —
sizeBytes Int No —

AttachmentUploadTicket! — 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 CreateAttachmentUpload($filename: String!, $contentType: String, $sizeBytes: Int) { createAttachmentUpload(filename: $filename, contentType: $contentType, sizeBytes: $sizeBytes) { nodeId uploadUrl headers } }",
"variables": {
"filename": "Example",
"contentType": "example",
"sizeBytes": 10
}
}
JSON