curl --request PUT \
--url https://api.questra.ai/variables/{variable_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Org-Id: <x-org-id>' \
--data '
{
"name": "<string>",
"expression": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"survey_id": "<string>",
"expression": "<string>",
"attention_required": {
"reason": "<string>",
"dismissed": false
}
}curl --request PUT \
--url https://api.questra.ai/variables/{variable_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Org-Id: <x-org-id>' \
--data '
{
"name": "<string>",
"expression": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"survey_id": "<string>",
"expression": "<string>",
"attention_required": {
"reason": "<string>",
"dismissed": false
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique ID of the variable to update
Unique ID of the variable
Unique name of the variable within the survey
^[a-zA-Z][a-zA-Z0-9_]*[a-zA-Z0-9]$"isTeenager"
"wants_to_be_contacted"
Unique ID of the survey the variable is from
Expression that evaluates to a value that can be used for data analysis or routing logic
Present when the AI flagged this variable as needing human review before export
Show child attributes