Download Field Attachments

Purpose

To download the attachments from the file upload and image upload fields of a module.

Request Details

Request URL

{api-domain}/crm/{version}/{module_api_name}/{record_ID}/actions/download_fields_attachment

Supported modules

Leads, Accounts, Contacts, Deals, Tasks, Meetings, Calls, Products, Price Books, Quotes, Sales Orders, Purchase Orders, Invoices, Campaigns, Vendors, Cases, Solutions, and Custom

Header

Authorization: Zoho-oauthtoken <access_token>

Scope

scope=ZohoCRM.modules.{module_name}.READ

Parameters
  • fields_attachment_idstring, mandatory

    The unique ID of the attachment of either the file upload field or the image upload field in the module. You can obtain this ID using the Get Records API for that specific record.

Possible Errors

  • INVALID_DATAHTTP 400

    The ID of the record is invalid.
    Resolution: Specify the correct record ID.

  • NO_PERMISSIONHTTP 403

    You do not have permission to download the attachments of the record in this module.
    Resolution: Contact your administrator.

Sample Request

Copiedcurl "https://www.zohoapis.com/crm/v6/Leads/554023000001054001/actions/download_fields_attachment?fields_attachment_id=554023000001736007"
-X GET
-H "Authorization: Zoho-oauthtoken 1000.03xxxxxxxxxxxxxxxxxa5317.dxxxxxxxxxxxxxxxxxfa"