Skip to content

Administration Organizations

Unknwon edited this page Dec 17, 2015 · 4 revisions

Administration Organizations

Create a new organization

POST /admin/users/:username/orgs
Parameters
Name Type Description
username string Required Organization user name
full_name string Full name of organization
description string Description to the organization
website string Official website
location string Organization location
Example
{
  "username": "gogs2",
  "full_name": "Gogs2",
  "description": "Gogs(Go Git Service) is a painless self-hosted Git Service.",
  "website": "https://gogs.io",
  "location": "USA"
}
Response
Status: 201 Created
Content-Type: application/json
{
  "id": 7,
  "username": "gogs2",
  "full_name": "Gogs2",
  "avatar_url": "/avatars/7",
  "description": "Gogs(Go Git Service) is a painless self-hosted Git Service.",
  "website": "https://gogs.io",
  "location": "USA"
}
Clone this wiki locally