deletePhoto Method
Table of Contentsup
Purpose
You can use this method to delete photos of Leads or Contacts.
Request URL
XML Format:
For Leads:
https://<APPDOMAIN>/crm/private/xml/Leads/deletePhoto?id=RecordID
For Contacts:
https://<APPDOMAIN>/crm/private/xml/Contacts/deletePhoto?id=RecordID
JSON Format:
For Leads:
https://<APPDOMAIN>/crm/private/json/Leads/deletePhoto?id=RecordID
For Contacts:
https://<APPDOMAIN>/crm/private/json/Contacts/deletePhoto?id=RecordID
Auth Token
Auth Token is an encrypted alphanumeric string that is required to authenticate your CRM account credentials. A valid user's Authentication Token is necessary to access the API. When making an API request, send the authentication token in the Authorization header as shown below:
https://<APPDOMAIN>/crm/private/xml/Leads/deletePhoto?id=RecordID
Header:
Authorization=1000XXXX65.1000XXXX44.caXXXXXXXXXXXX
(See Using Authentication Token )
Request Parameters
Parameter | Data Type | Description |
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>