Delete an Attachment
Purpose
To delete a file attached to a record.
Request URL
https://recruit.zoho.com/recruit/v2/{module_api_name}/{record_id}/Attachments/{attachment_id}
module_api_name - The API name of the module
record_id - The unique ID of the record
attachment_id - The unique ID of the attachment
Request Method
DELETE
Scope
scope=ZohoRecruit.modules.all
(or)
scope=ZohoRecruit.modules.{module_name}.{operation_type}
Possible module names | Possible operation types |
---|---|
candidate, application, jobopening, interview, client, contact, department, task, event, vendor, campaign, and custommodule | ALL - Full access to attachments DELETE - Delete attachment data |
Sample Request
Copiedcurl "https://recruit.zoho.com/recruit/v2/Candidates/7530000001647010/Attachments/7530000001701034"
-X DELETE
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
Sample Response
Copied{
"data": [
{
"code": "SUCCESS",
"details": {
"id": "7530000001701034"
},
"message": "record deleted",
"status": "success"
}
]
}