Update Conversation Variable
Available for: Chatflow
Updates one conversation variable.
Standard API equivalent: Update Conversation Variable. Differences:
useris required.- Error codes differ.
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
End-user identifier, defined by your app and unique within it. Must match the user the conversation was created with. See End User Identity.
1 - 255New value: null, a string, a number, a boolean, an object, or an array, matching the variable's declared type.
Response
The updated variable.
Conversation variable ID.
Variable name.
Declared type: string, number, boolean, secret, object, file, none, or an array type such as array[string], array[number], array[object], array[file], array[boolean], array[any].
String variables come back as-is; other types come back as a canonical JSON string; none comes back as null.
Variable description.
Creation time as a Unix timestamp in seconds.
Last-update time as a Unix timestamp in seconds.