Upload an Attachment

Purpose

To attach a file to a record. You must include the attachment in the request with content type as multipart/form data.

Request URL

https://recruit.zoho.com/recruit/v2/{module_api_name}/{record_id}/Attachments

module_api_name - The API name of the module

record_id - The unique ID of the record

Body

The request body should contain the following;

  • The file you want to attach.
  • Choose attachment type.
    File size limit: 20MB
    Supported file types: All file types except .exe

Request Method

POST

Scope

scope=ZohoRecruit.modules.all
(or)
scope=
ZohoRecruit.modules.{module_name}.{operation_type}

Possible module names

candidate, application, jobopening, interview, client, contact, department, task, event, vendor, campaign, and custommodule

Parameters

Parameter NameData TypeDescription
attachments_category_id *Comma Separated LongID of attachment category
attachments_category *Comma Separated StringLabel of attachment category
attachment_urlStringAttachment link

Parameters marked with * are mandatory.

Sample request

Copiedcurl "https://recruit.zoho.com/recruit/v2/Candidates/7530000000575433/Attachments?attachments_category=Offer,Offers,Resume,Resume,Cover Letter"
-X POST
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
-F "attachmentUrl=https://www.zohocorp.com"