Remove Tags from Records
Purpose
To delete the tags associated with records.
Endpoints
- POST /{module_API_name}/actions/remove_tags
- POST /{module_API_name}/{record_ID}/actions/remove_tags
Request Details
Request URL
To Remove Multiple Tags from Multiple Records:
{api-domain}/crm/{version}/{module_API_name}/actions/remove_tags
To remove tags from a specific record:
{api-domain}/crm/{version}/{module_API_name}/{record_ID}/actions/remove_tags
Supported modules
Leads, Accounts, Contacts, Deals, Campaigns, Tasks, Cases, Events, Calls, Solutions, Products, Vendors, Price Books, Quotes, Sales Orders, Purchase Orders, Invoices, and Custom modules.
Header
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Scope
ZohoCRM.modules.ALL
(or)
ZohoCRM.modules.{module_name}.{operation_type}
Possible module names
leads, accounts, contacts, deals, campaigns, tasks, cases, events, calls, solutions, products, vendors, pricebooks, quotes, salesorders, purchaseorders, invoices, and custom modules.
Possible operation types
ALL - Full access to the record
WRITE - Edit records in the module
Input JSON
- tagsJSON Object, mandatory
Specify the names of the tags you want to remove from the record.
- idsJSON Array, mandatory when removing tags from multiple records
Specify comma separated records IDs from which the tags must be removed. You can specify a maximum of 500 records IDs. Retrieve the record IDs using the GET - Records API.
Sample Input to Remove Multiple Tags from Multiple Records
Copied
Possible Errors
- INVALID_URL_PATTERNHTTP 404
Please check if the URL trying to access is a correct one
Resolution: The request URL specified is incorrect. Specify a valid request URL. Refer to the Request URL section. - OAUTH_SCOPE_MISMATCHHTTP 401
Unauthorized
Resolution: Client does not have ZohoCRM.modules.{module_name}.WRITE scope. Create a new client with valid scope. Refer to the Scope section. - NO_PERMISSIONHTTP 403
Permission denied to remove tags
Resolution: The user does not have permission to remove tags from the records. Contact your system administrator. - INTERNAL_ERRORHTTP 500
Internal Server Error
Resolution: Unexpected and unhandled exception in Server. Contact support team. - INVALID_REQUEST_METHODHTTP 400
The http request method type is not a valid one
Resolution: You have specified an invalid HTTP method to access the API URL. Specify a valid request method. Refer to the Endpoints section. - AUTHORIZATION_FAILEDHTTP 400
User does not have sufficient privilege to remove tags
Resolution: The user does not have the permission to remove tags from the records. Contact your system administrator. - INVALID_MODULEHTTP 400
The module name given seems to be invalid
Resolution: You have specified an invalid module name or there is no tab permission, or the module could have been removed from the available modules. Specify a valid module API name. Refer to the GET - Modules Metadata API to retrieve the module API names. - INVALID_MODULEHTTP 400
The given module is not supported in API
Resolution: The modules such as Documents and Projects are not supported in the current API. (This error will not be shown, once these modules are been supported). Specify a valid module API name.
Sample Response
Copied
Show full
Show less
Sample Request to Remove Tags from a Single Record
Copied
Sample Input to Remove Tags from a Single Record
Copied
Sample Response
Copied