Conversations
Update Conversation Variable
Available for: Chatflow, Chatbot, Legacy Agent apps.
Updates a conversation variable's value. The new value must match the variable's existing type.
put/conversations/{conversation_id}/variables/{variable_id}
Request
- Base URLhttps://api.dify.ai/v1
- URLhttps://api.dify.ai/v1/conversations/{conversation_id}/variables/{variable_id}
- AuthHTTP bearer
Path parameters
conversation_idstring uuid required
ID of the conversation that owns the variable. Get conversation IDs from List Conversations.
variable_idstring uuid required
ID of the variable to update. Get variable IDs from List Conversation Variables.
Request body
Response
Variable updated successfully.
Changes
No recorded changes to this operation across all 17 revisions of this API.