Actions26
- Contact Actions
- Conversation Actions
- Statistic Actions
- Variable Actions
Contact → Set / Update Variable
AI-generatedSummary
Update a contact variable's value
Inputs
- chatbotId (required) — The ID of the chatbot
- variableId (required) — The ID of the variable
- contactId (required) — The ID of the contact
- bodyContactVariableUpdate — The request body as JSON
Output shape
an object containing the API response (e.g., success flag or parsed JSON)
errors are thrown; no pagination; response may be empty if only success flag is returned
Examples
Example 1: Update a contact variable's value
chatbotId=123, contactId=contact_456, variableId=var_789, bodyContactVariableUpdate={"value":"updated"}
Example 2: Set or update a contact variable with custom JSON
chatbotId=myBot, contactId=contact_001, variableId=variable_002, bodyContactVariableUpdate={"value":"new content","extra":true}