更新变量
目的
用来更新CRM中变量的详细信息。
请求URL
https://www.zohoapis.com.cn/crm/v2/settings/variables
请求方法
PUT
范围
scope=ZohoCRM.settings.variables.{operation_type}
可能的操作类型 |
---|
ALL - 完全访问变量数据 UPDATE - 更新变量数据 |
示例请求
curl "https://www.zohoapis.com.cn/crm/v2/settings/variables"
-X PUT
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
Sample Input
{
"variables": [
{
"id": "40000000047003",
"value": "This is a new value"
},
{
"id": "40000000047007",
"description": "This is a new description"
},
{
"id": "40000000047009",
"api_name": "NewAPI"
}
]
}
示例响应
{
"variables": [
{
"code": "SUCCESS",
"details": {
"id": "40000000047003"
},
"message": "variable updated",
"status": "success"
},
{
"code": "SUCCESS",
"details": {
"id": "40000000047007"
},
"message": "variable updated",
"status": "success"
},
{
"code": "SUCCESS",
"details": {
"id": "40000000047009"
},
"message": "variable updated",
"status": "success"
}
]
}