Update an existing context variable definition
Update an existing context variable definition. You can update the display name, description, variable type, and select options.
You can also use PATCH for partial updates:
This endpoint requires an API key with the can_write_contacts
permission.
Parameter | Type | Required | Description |
---|---|---|---|
variable_id | integer | Yes | ID of the variable definition to update |
Parameter | Type | Required | Description |
---|---|---|---|
display_name | string | No | User-friendly display name (e.g., “Last Payment Date”) |
description | string | No | Optional description of the variable |
variable_type | string | No | Data type (text, number, date, boolean, select) |
select_options | array | No | Available options for select type variables |
Note: The name
and context_type
fields cannot be changed after creation.
Status Code | Error Code | Description |
---|---|---|
400 | invalid_json | Invalid JSON payload |
401 | authentication_required | No API key was provided |
401 | invalid_key | The API key is invalid or inactive |
403 | permission_denied | The API key doesn’t have the required permission |
404 | not_found | Variable definition not found |
500 | server_error | An unexpected server error occurred |
name
or context_type
of an existing variable definitionselect
type variable, provide the complete array of options (not just new ones)is_default: true
) cannot be modified