取消订阅特定通知
目的
取消订阅特定通知。
请求 URL
https://www.zohoapis.com.cn/crm/v2/actions/watch
请求方法
PATCH
范围
scope=ZohoCRM.notifications.{operation_type}
可能的操作类型 |
---|
ALL - 完全访问通知数据 WRITE - 编辑通知订阅明细 UPDATE - 更新通知订阅明细 |
备注:
_delete_events键对于取消订阅特定通知来说是必填的。如果"_delete_events": false 或 _delete_events键没有在输入时提供,订阅将无法取消。
channel_id 和 events 键也是必填。
示例请求
在这个请求中,"@inputData.json" 包含了示例输入数据。
https://www.zohoapis.com.cn/crm/v2/actions/watch"
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
-X PATCH
-d "@inputData.json"
示例输入
{
"watch": [
{
"channel_id": "1000000058001",
"events": [
"Leads.edit",
"Cases.all"
],
"_delete_events": true
}
]
}
示例响应
{
"watch": [
{
"code": "SUCCESS",
"details": {
"events": [
{
"resource_uri": "https://www.zohoapis.com.cn/crm/v2/Leads",
"resource_id": "1000000000041",
"resource_name": "Leads",
"channel_id": "1000000058001"
},
{
"resource_uri": "https://www.zohoapis.com.cn/crm/v2/Cases",
"resource_id": "1000000000089",
"resource_name": "Cases",
"channel_id": "1000000058001"
}
]
},
"message": "Successfully removed the subscribe details",
"status": "success"
}
]
}