Upload a ticket attachment
POST
Ownership is checked before file access. Send raw file bytes with their actual Content-Type. File size limit 10 MiB, subject to per-ticket and per-account quotas and file validation. messageId must be a public message written by this customer. Without it a customer message is created. Administrative tokens retain customer visibility.
apiToken tickets:writeheader
AuthorizationBearer <token>A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.
Scope: tickets:write
id*numberfilename*stringmessageId?numberbody*fileapplication/octet-streamFormat
binaryCompleted
application/json- response
id?numberfilename?stringcontentType?stringsizeBytes?numbercurl -X POST 'https://api.deluxhost.net/v1/tickets/0/attachments?filename=string' \ -H "Authorization: Bearer $DELUXHOST_TOKEN" \ -H 'Content-Type: application/octet-stream' \ --data-binary @./file.binExample Response
{ "id": 0, "filename": "string", "contentType": "string", "sizeBytes": 0}