Add the possibility to enable/disable a knowledge base using API #11130

Closed
opened 2026-02-21 18:55:18 -05:00 by yindo · 0 comments
Owner

Originally created by @lucasvalentee on GitHub (Mar 14, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I would like to manage Dify documents via the API, but I haven't found any route that allows me to disable a document from my knowledge base. It is only possible to delete it.

However, I would like to be able to enable or disable it, so that we can do a logical deletion without having to upload the document again later.

Is it possible to do this today? I couldn't find anything in the API documentation. The route that manages this is the "/console" path, but the token generated there is only accessible via the Dify login and is temporary. It is not possible to access this route using the API key.

2. Additional context or comments

Here is the list of available routes in the API documentation:

Image

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @lucasvalentee on GitHub (Mar 14, 2025). ### Self Checks - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. I would like to manage Dify documents via the API, but I haven't found any route that allows me to disable a document from my knowledge base. It is only possible to delete it. However, I would like to be able to enable or disable it, so that we can do a logical deletion without having to upload the document again later. Is it possible to do this today? I couldn't find anything in the API documentation. The route that manages this is the "/console" path, but the token generated there is only accessible via the Dify login and is temporary. It is not possible to access this route using the API key. ### 2. Additional context or comments Here is the list of available routes in the API documentation: ![Image](https://github.com/user-attachments/assets/3786eae8-7478-4d27-a7c1-74de79f231da) ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:55:18 -05:00
yindo closed this issue 2026-02-21 18:55:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11130