Skip to content

Remove an upload that wasn't sent

DELETE /v1/tickets/uploads/{uploadId}

Removes a file uploaded for a message that hasn't been sent with one yet. A file already sent stays with its message (404 not_found).

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

support:write
Open and answer tickets. Open support tickets and reply to them.

Headers

FieldType and description
Idempotency-Key

string 1 to 255 characters

A key of your own for this request, like a UUID: letters, digits and _ - : . Send the request again with the same key (after a timeout, say) and it's done only once. Keys are kept for 24 hours (see Idempotency).

Path parameters

FieldType and description
uploadId Required

string

The upload's id (the id its upload answered).

Example request

curl -X DELETE "https://api.rabbitflare.com/v1/tickets/uploads/5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

204 No Content The answer has no body.

Example response

204 No Content

No content: the answer has no body.

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

Rate limit

Write requests: 30 a minute per token, 60 per account. More in Rate limits.

Added on .

Popular

API docs