Upload a Photo
Purpose
To attach a photo to a record. You must include the photo in the request with content type as multipart/form data.
Request URL
https://recruit.zoho.com/recruit/v2/{module_name}/{id}/photo
module_api_name - The API name of the module
record_id - The unique ID of the record
Request Method
POST
Scope
scope=ZohoRecruit.modules.all
(or)
scope=ZohoRecruit.modules.{module_name}.{operation_type}
Possible module names | Possible operation types |
---|---|
candidate and contact | ALL - Full access to images CREATE - Create photo data |
Parameters
Parameter Name | Data Type | Description |
---|---|---|
file (mandatory) | File Input Stream | Pass the file input stream of the photo |
Sample Request
Copiedcurl "https://recruit.zoho.com/recruit/v2/Candidates/100002000000023629/photo"
-X POST
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
-F "file=@img1.png"
In the request, "file=@img1.png" contains the sample input image.