Updates an existing custom variable by its ID. Use this endpoint to modify a variable’s source, default value, or other properties.
Partial updates: Only the provided fields are updated; omitted fields remain unchanged.
Restrictions: The variable name cannot be changed after creation.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Variable ID to update
Human-readable description of the variable
200"The preferred language of the user"
Source from which the variable value is resolved
message_metadata, user_metadata, constant "user_metadata"
Dot-notation path to extract the value from the source metadata
100"language"
Fixed value used when sourceType is constant
500"en"
Fallback value used when the source path does not resolve
200"en"
Custom variable updated successfully
"507f1f77bcf86cd799439011"
"my-app-id"
"user.plan"
"The user subscription plan"
message_metadata, user_metadata, constant "user_metadata"
"metadata.plan"
""
"free"
custom "custom"
1700000000000
1700000000000