删除标签

目的

从模块中删除标签

请求URL

https://www.zohoapis.com.cn/crm/v2/settings/tags/{tag_id}

tag_id - 标签的唯一ID

请求方法

DELETE

范围

scope=ZohoCRM.settings.all
(或)
scope=ZohoCRM.settings.tags.{operation_type}

可能的操作类型
ALL - 完全数据访问
WRITE - 编辑标签数据
DELETE - 删除标签数据

示例请求


				curl "https://www.zohoapis.com.cn/crm/v2/settings/tags/2000000035058"
-X DELETE
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"			

示例响应


				{
    "tags": {
        "code": "SUCCESS",
        "details": {
            "id": "2000000035058"
        },
        "message": "tags deleted successfully",
        "status": "success"
    }
}			

示例请求


				/** 删除标签 */
$zcrmTagIns = ZCRMTag::getInstance("3372164000001585001"); //3372164000001585001 标签ID
$apiResponse = $zcrmTagIns->delete();
$tag = $apiResponse->getResponseJSON(); //$tag - JSON数组			

示例响应


				{
    "tags": {
        "code": "SUCCESS",
        "details": {
            "id": "2000000035058"
        },
        "message": "tags deleted successfully",
        "status": "success"
    }
}			

示例请求


				ZCRMTag tagIns = ZCRMTag.GetInstance(3372164000001539001); //3372164000001539001 标签ID
APIResponse response = tagIns.Delete();
JObject tag = response.ResponseJSON; //标签是JArray			

示例响应


				{
    "tags": {
        "code": "SUCCESS",
        "details": {
            "id": "2000000035058"
        },
        "message": "tags deleted successfully",
        "status": "success"
    }
}