Delete Attachments
2 min
You can delete attachments in business objects.
Base URL:
https://{tenant url}/api/rest/Attachment?ID={business object unique key}
You can delete attachments in business objects.
Base URL:
https://{tenant url}/api/rest/Attachment?ID={business object unique key}
Here is an example to delete attachments present in a particular business object.
URL | https://{tenant url}/api/rest/Attachment?ID=DBBA75D38DAE4FADABC475669136728A |
|---|---|
Method | DELETE |
Header Name | Authorization: JWT Token/Session Key/REST API Key |
Status Code | 204 |
Response Payload | { "code": "ISM_2003", "description": "No Content", "message": "", "help": "" } |
Scenario: Trying to attach a file with a file name that already exists in the business object.
https://{tenant url}/api/rest/Attachments?ID=1968C01EFAB244AD8C67648E7578A30E
Header Name:
Authorization: Sessionkey
Code | ISM_4004 |
|---|---|
Description | Not Found |
Message | [ "Requested resource is not found" ] |
HTTP STATUS CODE | 400 |