Update a Specific Variable

Purpose

To update details of a specific variable in CRM.

Request URL

https://www.zohoapis.com/crm/v2/settings/variables/{variable_id (or) variable_api_name}

variable_id - The unique ID of the variable.

Request Method

PUT

Scope

scope=ZohoCRM.settings.variables.{operation_type}

 
Possible operation types
ALL - Full access to variable data
UPDATE - Update variable data

Sample Request

Copiedcurl "https://www.zohoapis.com/crm/v2/settings/variables/40000000047010"
(or)
curl "https://www.zohoapis.com/crm/v2/settings/variables/Variable444"
-X PUT
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"

Sample Input

Copied{
    "variables": [
       {
            "value": "This is a new value",
            "description": "New description coming up",
            "name": "Variable444"
        }
    ]
}

Sample Response

Copied{
    "variables": [
       {
            "code": "SUCCESS",
            "details": {
                "id": "40000000047010"
            },
            "message": "variable updated",
            "status": "success"
        }
    ]
}