deletePhoto Method

deletePhoto Method

 Purpose

You can use this method to delete photos of Leads or Contacts.

 Request URL

XML Format:

For Leads:
https://crm.zoho.com/crm/private/xml/Leads/deletePhoto?authtoken=Auth Token&scope=crmapi&id=RecordID

For Contacts:
https://crm.zoho.com/crm/private/xml/Contacts/deletePhoto?authtoken=Auth Token&scope=crmapi&id=RecordID

JSON Format:

For Leads:
https://crm.zoho.com/crm/private/json/Leads/deletePhoto?authtoken=Auth Token&scope=crmapi&id=RecordID

For Contacts:
https://crm.zoho.com/crm/private/json/Contacts/deletePhoto?authtoken=Auth Token&scope=crmapi&id=RecordID

 Request Parameters

Parameter Data Type Description
authtoken* String Encrypted alphanumeric string to authenticate your Zoho credentials.
scope* String Specify the value as crmapi
id* String Specify unique ID of the record

* - Mandatory parameter

 Sample Response

<response uri="/crm/private/xml/Leads/deletePhoto">
<result>
<message>Photo deleted successfully</message>
</result>
</response>

    • Related Articles

    • deletePhoto Method - Comparison

      Purpose To delete a photo of a contact or lead. Request URL Version 1.0: https://crm.zoho.com/crm/private/xml/(Leads or Contacts)/deletePhoto?authtoken=AuthToken&scope=crmapi&id=RecordID Version 2.0: URL: https://www.zohoapis.com/crm/v2/{Leads or ...
    • deleteRecords Method

      Table of Contents Purpose Request URL Request Parameters Example Purpose You can use this method to delete the selected record (you must specify unique ID of the record) and move to the recycle bin. Note: This method is availablefor all modules. ...
    • downloadPhoto Method

       Purpose You can use this method to download the photos of Leads or Contacts.  Request URL XML Format: For Leads: https://crm.zoho.com/crm/private/xml/Leads/downloadPhoto?authtoken=Auth Token&scope=crmapi&id=RecordID For Contacts: ...
    • searchRecords Method

       Purpose You can use the searchRecords method to get the list of records that meet your search criteria.  Request URL XML Format: https://crm.zoho.com/crm/private/xml/Leads/searchRecords?authtoken=Auth Token&scope=crmapi&criteria=(((Last ...
    • deleteFile Method

      Purpose You can use this method to delete files attached to records. Request URL XML Format: https://crm.zoho.com/crm/private/xml/Leads/deleteFile?authtoken=Auth Token&scope=crmapi&id=Attachment Id JSON Format: ...