new knowledge base metadata api by openapi methods (curl) return 404 #11720

Closed
opened 2026-02-21 19:03:07 -05:00 by yindo · 0 comments
Owner

Originally created by @StrayDragon on GitHub (Mar 19, 2025).

Originally assigned to: @JohnJyong on GitHub.

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I'm noticed new version is released! That cool! But when using in openapi methods to interactive services, i got 404 for all new metadata apis

just follow https://cloud.dify.ai/datasets?category=api doc usage of the /datasets/{dataset_id}/metadata/built-in/{action} api, and fullfil the target knowledge base {dataset_id} and {api_key}


curl --location --request POST 'http://ai.urchinet.lan/v1/datasets/{dataset_id}/metadata/built-in/enable' \
--header 'Authorization: Bearer {api_key}'

got result 404

<!doctype html>
<html lang=en>
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>

by the way, directly operate on web ui is ok, maybe some code forgot to added to openapi

ref:

✔️ Expected Behavior

200 ok response

Actual Behavior

404 not found

Originally created by @StrayDragon on GitHub (Mar 19, 2025). Originally assigned to: @JohnJyong on GitHub. ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [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. ### Dify version 1.1.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I'm noticed new version is released! That cool! But when using in openapi methods to interactive services, i got 404 for all new metadata apis just follow https://cloud.dify.ai/datasets?category=api doc usage of the `/datasets/{dataset_id}/metadata/built-in/{action}` api, and fullfil the target knowledge base `{dataset_id}` and `{api_key}` ```bash curl --location --request POST 'http://ai.urchinet.lan/v1/datasets/{dataset_id}/metadata/built-in/enable' \ --header 'Authorization: Bearer {api_key}' ``` got result 404 ``` <!doctype html> <html lang=en> <title>404 Not Found</title> <h1>Not Found</h1> <p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p> ``` by the way, directly operate on web ui is ok, maybe some code forgot to added to openapi ref: - PR: https://github.com/langgenius/dify/pull/15982 - relative code: - WebUI API: https://github.com/langgenius/dify/blob/main/api/controllers/console/datasets/metadata.py - Missing service API: https://github.com/langgenius/dify/tree/main/api/controllers/service_api/dataset ### ✔️ Expected Behavior 200 ok response ### ❌ Actual Behavior 404 not found
yindo added the 🐞 bug label 2026-02-21 19:03:07 -05:00
yindo closed this issue 2026-02-21 19:03:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11720