EaserixDocs
DevelopersAPI referenceTasksAttachments

Upload a file (multipart, "file" field, ≤15MB)

multipart/form-data upload to R2. Any linked issue (directly via issueId, or via the target comment's issue) must belong to the caller's org (else 404). 400 when the file is missing or larger than ~15MB; 501 when storage is not configured. Returns 200 (not 201).

View as Markdown
POST
/v1/attachments
AuthorizationBearer <token>

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/attachments" \  -F file="string"
{  "attachment": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "url": "string",    "filename": "string",    "contentType": "string",    "size": 0,    "created": "2019-08-24T14:15:22Z"  }}