Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.25.5, which is no longer the latest release. See the latest release.

Rename an organization

POST
/orgs/{org}/rename
curl --request POST \
--url https://gitea.com/api/v1/orgs/example/rename \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "new_name": "example" }'
org
required
string

Existing org name

RenameOrgOption options when renaming an organization

object
new_name
required

New username for this org. This name cannot be in use yet by any other user.

string
unique items
Examplegenerated
{
"new_name": "example"
}

APIEmpty is an empty response

Media typeapplication/json

APIForbiddenError is a forbidden error response

Media typeapplication/json
message
string
url
string

APIValidationError is error format response related to input validation

Media typeapplication/json
message
string
url
string