Skip to content

[Bug] variable_name filter not working in GET /conversations/{conversation_id}/variables #29239

@caiyuanhangDicp

Description

@caiyuanhangDicp

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Version 1.10.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Steps to Reproduce

curl -X GET \
  'https://<your-dify-domain>/v1/conversations/<conversation_id>/variables?user=<user_id>&variable_name=citation_details' \
  --header 'Authorization: Bearer <your_app_key>'

The API response returns all conversation variables within the limit rather than filtering by the specified variable name.

Expected Behavior

Only variables with the name citation_details should be returned.

Actual Behavior

The API ignores the variable_name parameter and returns all variables within the page limit.

✔️ Expected Behavior

Expected Behavior

Only variables with the name citation_details should be returned.

❌ Actual Behavior

Actual Behavior

The API ignores the variable_name parameter and returns all variables within the page limit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions