Create an organization
curl --request POST \
--url https://gogs.example.com/api/v1/admin/users/{username}/orgs \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"full_name": "<string>",
"description": "<string>",
"website": "<string>",
"location": "<string>"
}
'{
"id": 123,
"username": "<string>",
"full_name": "<string>",
"avatar_url": "<string>",
"description": "<string>",
"website": "<string>",
"location": "<string>"
}Administration
Create an organization
Requires the authenticated user to be a site administrator.
POST
/
admin
/
users
/
{username}
/
orgs
Create an organization
curl --request POST \
--url https://gogs.example.com/api/v1/admin/users/{username}/orgs \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"full_name": "<string>",
"description": "<string>",
"website": "<string>",
"location": "<string>"
}
'{
"id": 123,
"username": "<string>",
"full_name": "<string>",
"avatar_url": "<string>",
"description": "<string>",
"website": "<string>",
"location": "<string>"
}Authorizations
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Path Parameters
Username
Body
application/json