Delete an Attachment

Purpose

To delete a specific attachment.

Request URL

https://fsm.zoho.com/fsm/v1/<parent_module_api_name>/<parent_record_id>/Attachments/<id>

parent_module_api_name - The API name of the module whose related record you want to fetch

parent_record_id - The ID of the parent record

id - The unique ID of the attachment.

Request Method

DELETE

Scope

scope=ZohoFSM.modules.<module_name>.DELETE

Supported Modules

Module NameAPI Name
RequestsRequests
WorkOrdersWork_Orders
EstimatesEstimates
ServiceAppointmentsService_Appointments
ContactsContacts
CompaniesCompanies
AssetsAssets
Service_And_PartsService_And_Parts

Sample Request

Copiedcurl --location --request DELETE 'https://fsm.zoho.com/fsm/v1/Work_Orders/1003000004283008/Attachments/1003000004283053' \
--header 'Authorization: Zoho-oauthtoken 1000.b3xxxxxx.xxxxxxxx3'

Sample Response

Copied{
    "data": [
        {
            "code": "SUCCESS",
            "details": {
                "id": "1003000004283053"
            },
            "message": "record deleted",
            "status": "success"
        }
    ]
}