Skip to content

Upload an attachment

View as Markdown

POST/v1/tickets/{number}/attachmentsScope write

Attaches a file to a request. Send it as multipart/form-data in the file field. The type is read from the content and must match the file’s extension; the workspace may narrow the accepted types and size.

Name Type Description
number required string Request number, such as GM-000123.
Field Type Description
file required file Up to 10 MB. Accepted: .pdf, .png, .jpg, .jpeg, .txt, .zip.

201 Created · data

Field Type Description
contentType string MIME type detected from the content.
createdAt date-time When it was created.
fileName string File name.
id integer Unique ID.
sizeBytes integer Size in bytes.
Example
{
"data": {
"id": 88,
"fileName": "vpn-client.log",
"contentType": "text/plain",
"sizeBytes": 48213,
"createdAt": "2026-12-06T14:30:00Z"
}
}

Errors share one shape; see Errors for every key.

Terminal window
curl -X POST 'https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123/attachments' \
-H "Authorization: Bearer $DUTY_API_KEY" \
-F "file=@report.pdf"