Some difficulties in API endpoints #3755

Closed
opened 2025-11-11 15:39:12 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @DerrickA1st on GitHub (Feb 11, 2025).

Following the "API Endpoints" documents on your official website, I was trying to realize "Adding Files to Knowledge Collections", using Postman as a tool to test API. Here are some difficulties puzzling me.

  1. In the Endpoint: "POST /api/v1/knowledge/{id}/file/add" , what is the meaning of "knowledge"? and the "id"? Do I need to create the "knowledge" collection manually?or it will generate automatically? Besides, what does this "id" refer to ? or I should ask:where should I find this "knowledge_id"?

2.In this "curl example" what does the "file_id" mean? I successfully upload a file and got a response, but I don't know which param represent "file id"? is it "id","filename"or"collection_name"?

Originally created by @DerrickA1st on GitHub (Feb 11, 2025). Following the "API Endpoints" documents on your official website, I was trying to realize "Adding Files to Knowledge Collections", using Postman as a tool to test API. Here are some difficulties puzzling me. 1. In the Endpoint: "POST /api/v1/knowledge/{id}/file/add" , what is the meaning of "knowledge"? and the "id"? Do I need to create the "knowledge" collection manually?or it will generate automatically? Besides, what does this "id" refer to ? or I should ask:where should I find this "knowledge_id"? 2.In this "curl example" what does the "file_id" mean? I successfully upload a file and got a response, but I don't know which param represent "file id"? is it "id","filename"or"collection_name"?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3755