Get the attachments for an object by object ID.
Forge and OAuth2 apps cannot access this REST resource.
string
RequiredReturns the attachments for the object
array<AttachmentEntry>
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/assets/1.0/attachments/object/{objectId}' \
--header 'Accept: application/json'
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>"
}
]
Add an attachment to an object by object ID.
Forge and OAuth2 apps cannot access this REST resource.
string
RequiredAttachments to be added
string
binary
Returns the attachments for the object
array<AttachmentEntry>
1
2
3
curl --request POST \
--url 'http://{baseurl}/rest/assets/1.0/attachments/object/{objectId}' \
--header 'Accept: application/json'
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>"
}
]
Delete an attachment by attachment ID.
Forge and OAuth2 apps cannot access this REST resource.
string
RequiredReturns the attachment that was deleted
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/assets/1.0/attachments/{attachmentId}' \
--header 'Accept: application/json'
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: