forked from gogs/go-gogs-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Administration Organizations
Unknwon edited this page Mar 25, 2016
·
4 revisions
POST /admin/users/:username/orgs
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 |
{
"username": "gogs2",
"full_name": "Gogs2",
"description": "Gogs(Go Git Service) is a painless self-hosted Git Service.",
"website": "https://gogs.io",
"location": "USA"
}
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"
}
POST /admin/orgs/:orgname/teams
Name | Type | Description |
---|---|---|
name | string | Required Team name |
description | string | Description to the team |
permission | string | Team permission, can be read , write or admin , default is read
|
{
"name": "new-team",
"description": "A new team created by API",
"permission": "write"
}
Status: 201 Created
Content-Type: application/json
{
"id": 12,
"name": "new-team",
"description": "A new team created by API",
"permission": "write"
}
PUT /admin/orgs/:orgname/teams/:teamid/memberships/:username
Status: 204 No Content
DELETE /admin/orgs/:orgname/teams/:teamid/memberships/:username
Status: 204 No Content