GET

Get attachments

Get the attachments for an object by object ID.

Request

Path parameters

objectId

string

Required

Responses

Returns the attachments for the object

application/json

array<AttachmentEntry>

GET/assets/1.0/attachments/object/{objectId}
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/assets/1.0/attachments/object/{objectId}' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 [ { "id": 2154, "author": "<string>", "mimeType": "<string>", "filename": "<string>", "filesize": "<string>", "created": "<string>", "comment": "<string>", "commentOutput": "<string>", "url": "<string>" } ]
POST

Add attachments

Add an attachment to an object by object ID.

Request

Path parameters

objectId

string

Required

Request bodymultipart/form-data

Attachments to be added

string

Format: binary

Responses

Returns the attachments for the object

application/json

array<AttachmentEntry>

POST/assets/1.0/attachments/object/{objectId}
1 2 3 curl --request POST \ --url 'http://{baseurl}/rest/assets/1.0/attachments/object/{objectId}' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 [ { "id": 2154, "author": "<string>", "mimeType": "<string>", "filename": "<string>", "filesize": "<string>", "created": "<string>", "comment": "<string>", "commentOutput": "<string>", "url": "<string>" } ]
DEL

Delete attachment

Delete an attachment by attachment ID.

Request

Path parameters

attachmentId

string

Required

Responses

Returns the attachment that was deleted

application/json

AttachmentEntry
DEL/assets/1.0/attachments/{attachmentId}
1 2 3 curl --request DELETE \ --url 'http://{baseurl}/rest/assets/1.0/attachments/{attachmentId}' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 { "id": 2154, "author": "<string>", "mimeType": "<string>", "filename": "<string>", "filesize": "<string>", "created": "<string>", "comment": "<string>", "commentOutput": "<string>", "url": "<string>" }

Rate this page: