Delete an attachment.
-
HTTP URL :
https://<your-instance>.yooi.io/api/store/object/id/{objectId}/attachments/{attachmentFieldId}/{revisionId}
-
HTTP method:
DELETE -
Parameters:
-
objectId: instance id -
attachmentFieldId: field id -
revisionId: file revision id (can be find in attachments list API response)
-
Example
Bash
curl -X 'DELETE' \
'https://<your-instance>.yooi.io/api/store/object/id/cc416276-73c4-4cb8-a090-d101422f36aa/attachments/51842f47-311c-47aa-90ea-947eb4722417/73a48862-b92a-4971-848c-50e7795875d9' \
-H 'Authorization: Bearer #yourtoken#'
Response
JSON
{
"eventId": "1739447270741-0"
}