API endpoint for organization creation #2483

Closed
opened 2025-11-02 04:38:04 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @bboehmke on GitHub (Nov 2, 2018).

  • Gitea version (or commit ref): 1.5.3
  • Git version: not relevant (website issue)
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

It seems that there is no API endpoint to create an organization (at least I can not find it).

I expected something like POST /orgs/ but this does not exist in swagger:
https://try.gitea.io/api/swagger#/organization
The function is also missing in the go client library of Gitea: https://github.com/go-gitea/go-sdk/blob/master/gitea/org.go

I also found an old pull request for gogs: gogs/gogs#4835
There an API endpoint for the creation of organizations was added.

Originally created by @bboehmke on GitHub (Nov 2, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.5.3 - Git version: not relevant (website issue) - Operating system: Linux - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description It seems that there is no API endpoint to create an organization (at least I can not find it). I expected something like ``POST /orgs/`` but this does not exist in swagger: https://try.gitea.io/api/swagger#/organization The function is also missing in the go client library of Gitea: https://github.com/go-gitea/go-sdk/blob/master/gitea/org.go I also found an old pull request for gogs: gogs/gogs#4835 There an API endpoint for the creation of organizations was added. <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/featuremodifies/api labels 2025-11-02 04:38:04 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2483