uploadPhoto Method - Comparison


To add a photo to a contact or lead.

Request URL

Version 1.0:

https://crm.zoho.com/crm/private/xml/(Leads or Contacts)/uploadPhoto?authtoken=AuthToken&scope=crmapi&id=Record Id&content=File Input Stream

Version 2.0:

URL: https://www.zohoapis.com/crm/v2/{Leads or Contacts}/{record_id}/photo

Method: POST

In multipart/form-data request, provide file parameter with image stream.

Header: Authorization=Zoho-oauthtoken {oauth_token}

Request Parameters

Version 1.0Version 2.0
authtoken=****Authorization=Zoho-oauthtoken ***** - as a Header.
idGiven within the Request URL.
contentFile content has to be given as form-data
Ex. file=photo content

Sample Responses:

Response in Version 1.0Response in Version 2.0
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/crm/private/xml/Leads/uploadPhoto">
<message>Photo uploaded succuessfully</message>
  "code": "SUCCESS",
  "details": {}
  "message": "photo uploaded successfully",
  "status": "success",

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocrm.com