v1

OpenAPI 3.0.12026-08-06274588.1 KB
Attachments

Updates attachment metadata and content by unique identifier. Only supports directly uploaded files, not external source attachments.

put/api/v1/attachments/{id}

Path parameters

idstring uuid required

The unique identifier of the attachment to update.

Request body

Namestring

The unique identifier of the item.

Contentstring binary

The file content of the attachment.

RequestIdstring uuid

Idempotency key

Example request

{
  "Name": "d290f1ee-6c54-4b01-90e6-d701748f0851"
}

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
}