更新特定变量
目的
更新CRM中特定变量的详细信息。
请求URL
https://www.zohoapis.com.cn/crm/v2/settings/variables/{variable_id (或) variable_api_name}
variable_id - 变量的唯一ID。
请求方法
PUT
范围
scope=ZohoCRM.settings.variables.{operation_type}
| 可能的操作类型 |
|---|
| ALL - 完全访问变量数据 UPDATE - 更新变量数据 |
示例请求
curl "https://www.zohoapis.com.cn/crm/v2/settings/variables/40000000047010"
(或)
curl "https://www.zohoapis.com.cn/crm/v2/settings/variables/Variable444"
-X PUT
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf" 示例输入
{
"variables": [
{
"value": "This is a new value",
"description": "New description coming up",
"name": "Variable444"
}
]
} 示例响应
{
"variables": [
{
"code": "SUCCESS",
"details": {
"id": "40000000047010"
},
"message": "variable updated",
"status": "success"
}
]
}