mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 22:21:27 -05:00
API for group-management #3038
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ill-yes on GitHub (Dec 18, 2024).
Is your feature request related to a problem? Please describe.
Currently, it is not possible to create new groups via the existing API. Attempting to use a corresponding POST endpoint (e.g.,
/groups/create) results in a405 - Method Not Allowederror, even though this should be the correct method. This indicates that the functionality for creating groups on the server side is either not implemented or incomplete. For users who want to manage groups dynamically through an API, this leads to additional manual steps or workarounds.Describe the solution you'd like
I would like to have an officially supported, documented API route for creating groups (e.g.,
POST /groups), providing the following features:Describe alternatives you've considered
Alternative approaches so far include:
Additional context
A properly implemented and documented endpoint would facilitate integration with external tools (e.g., scripts, CI/CD jobs, or automation solutions). This would benefit users who need a scalable and reproducible way to manage groups programmatically.
@Peter-De-Ath commented on GitHub (Dec 18, 2024):
The entire Open WebUI front end uses the API endpoints, so if you can do it in the front end you can do with the API.
You can access all the endpoints docs from here http://localhost:8080/docs on your local install.
Here is an example curl request creating a new group
Links for API docs are also on the OWUI Docs site https://docs.openwebui.com/getting-started/advanced-topics/api-endpoints
PS: based on dev branch as of this comment
@ill-yes commented on GitHub (Dec 18, 2024):
Well, my mistake - I had a look at the first endpoint examples:
/api/modelsSo I missed the
v1in the route, unfortunately only visible in routes documented below.Source: https://docs.openwebui.com/getting-started/advanced-topics/api-endpoints/
Thank you!