Update Conversation Variable
Available for: Chatflow, Chatbot, Agent apps.
Updates a conversation variable’s value. The new value must match the variable’s existing type.
Authorizations
Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).
Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).
Path Parameters
ID of the conversation that owns the variable. Get conversation IDs from List Conversations.
ID of the variable to update. Get variable IDs from List Conversation Variables.
Body
Request body for updating a conversation variable.
The new value for the variable. Must match the variable's expected type.
End-user identifier, defined by your app and unique within it. See End User Identity.
Response
Variable updated successfully.
Variable ID.
Variable name.
Variable value type. Possible values: string, number, object, secret, file, boolean, array[any], array[string], array[number], array[object], array[file], array[boolean].
Variable value (can be a JSON string for complex types).
Variable description.
Creation timestamp.
Last update timestamp.