v2

latestOpenAPI 3.0.12026-08-08274588.1 KB
Attachments

Adds a new attachment to the specified item. Supports direct file uploads only; external source attachments are not supported.

post/api/v1/attachments

Request body

ItemIdstring uuid

The unique identifier of the item.

Namestring

The name of the attachment.

Contentstring binary

The file content of the attachment.

RequestIdstring uuid

Idempotency key

Example request

{
  "ItemId": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "Name": "Document.pdf"
}

Response

OK

idstring uuid required

The unique identifier of the attachment.

itemIdstring uuid required

The unique identifier of the item.

namestring nullable required

The name of the attachment.

mimeTypestring nullable required

The MIME type of the attachment.

sizeinteger required

The size of the attachment in bytes.

Example response

{
  "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "itemId": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "name": "Document.pdf",
  "mimeType": "application/pdf",
  "size": 102400
}