Add organization renaming API #13882

Closed
opened 2025-11-02 10:56:01 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @bsofiato on GitHub (Dec 26, 2024).

Feature Description

How do you guys feel about adding an API that renames an organization ?.

We already have an API to rename users and I was think of adding one for organizations in the same vein (i.e., a post on /orgs/{org}/rename).

If you guys think this is a worth feature, I'd gladly submit a PR.

Screenshots

No response

Originally created by @bsofiato on GitHub (Dec 26, 2024). ### Feature Description How do you guys feel about adding an API that renames an organization ?. We already have an [API to rename users](https://docs.gitea.com/api/1.22/#tag/admin/operation/adminRenameUser) and I was think of adding one for organizations in the same vein (i.e., a post on `/orgs/{org}/rename`). If you guys think this is a worth feature, I'd gladly submit a PR. ### Screenshots _No response_
GiteaMirror added the proposal/acceptedtype/proposal labels 2025-11-02 10:56:01 -06:00
Author
Owner

@lunny commented on GitHub (Dec 26, 2024):

Please. I think Endpoint supports renaming organizations. Of course, a new clear endpoint is necessary, and maybe we need to have a more restricted check to determine whether it's a user or an organization.

@lunny commented on GitHub (Dec 26, 2024): Please. I think Endpoint supports renaming organizations. Of course, a new clear endpoint is necessary, and maybe we need to have a more restricted check to determine whether it's a user or an organization.
Author
Owner

@bsofiato commented on GitHub (Dec 26, 2024):

Hey @lunny

I've confirmed that the Hey /admin/users/{username}/rename endpoint checks whether the given user is indeed an user. If it is not, it will return an error :(

I'll write a PR that creates this new endpoint and summit it for you guys

@bsofiato commented on GitHub (Dec 26, 2024): Hey @lunny I've confirmed that the Hey `/admin/users/{username}/rename` endpoint **checks** whether the given user is indeed an user. If it is not, it will return an error :( I'll write a PR that creates this new endpoint and summit it for you guys
Author
Owner

@cclvi256 commented on GitHub (Jan 14, 2025):

Olá @bsofiato. Are you still working on this issue?

@cclvi256 commented on GitHub (Jan 14, 2025): Olá @bsofiato. Are you still working on this issue?
Author
Owner

@bsofiato commented on GitHub (Jan 14, 2025):

@cclvi256 yeap. I had some health issues at the end of the year, but I'll issue the PR today or tomorrow :)

@bsofiato commented on GitHub (Jan 14, 2025): @cclvi256 yeap. I had some health issues at the end of the year, but I'll issue the PR today or tomorrow :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13882