[PR #3692] [MERGED] Add support for /v1/document/upload* endpoints to support auto-add to workspace #4361

Closed
opened 2026-02-22 18:35:40 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3692
Author: @timothycarambat
Created: 4/21/2025
Status: Merged
Merged: 4/21/2025
Merged by: @timothycarambat

Base: masterHead: documents-api-post-upload-embed-targets


📝 Commits (2)

  • df98f92 Add support for /v1/document/upload* endpoints to support auto-add to workspace
  • d97faf1 Merge branch 'master' into documents-api-post-upload-embed-targets

📊 Changes

3 files changed (+112 additions, -11 deletions)

View changed files

📝 server/endpoints/api/document/index.js (+48 -8)
📝 server/models/documents.js (+51 -0)
📝 server/swagger/openapi.json (+13 -3)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

What is in this change?

  • Adds support the the backend API Documents upload endpoints to take an additional test CSV param for addToWorkspaces in its multiform or POST body that will auto-embed the document to the desired workspace(s) by their slug.

Content must be string CSV of slugs to update in all forms, even in POST

Eg: "addToWorkspaces": "workspace1,workspace2,sample"

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3692 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 4/21/2025 **Status:** ✅ Merged **Merged:** 4/21/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `documents-api-post-upload-embed-targets` --- ### 📝 Commits (2) - [`df98f92`](https://github.com/Mintplex-Labs/anything-llm/commit/df98f922362ef158bdc7df6241510213c4cb1310) Add support for `/v1/document/upload*` endpoints to support auto-add to workspace - [`d97faf1`](https://github.com/Mintplex-Labs/anything-llm/commit/d97faf1dfcef39f76c613ad92b9ea70573e60dab) Merge branch 'master' into documents-api-post-upload-embed-targets ### 📊 Changes **3 files changed** (+112 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `server/endpoints/api/document/index.js` (+48 -8) 📝 `server/models/documents.js` (+51 -0) 📝 `server/swagger/openapi.json` (+13 -3) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### What is in this change? - Adds support the the backend API `Documents` upload endpoints to take an additional test CSV param for `addToWorkspaces` in its multiform or POST body that will auto-embed the document to the desired workspace(s) by their slug. Content must be string CSV of slugs to update in all forms, even in POST Eg: `"addToWorkspaces": "workspace1,workspace2,sample"` <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated - [ ] I have tested my code functionality - [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:40 -05:00
yindo closed this issue 2026-02-22 18:35:40 -05:00
yindo changed title from [PR #3692] Add support for `/v1/document/upload*` endpoints to support auto-add to workspace to [PR #3692] [MERGED] Add support for `/v1/document/upload*` endpoints to support auto-add to workspace 2026-06-05 15:18:11 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4361