Skip to content

Latest commit

 

History

History

Organizations

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Organizations

List your organizations

List organizations for the authenticated user.

GET /user/orgs 

Response

Status: 200 OK 
[ { "id": 6, "username": "gogs", "full_name": "Gogs", "avatar_url": "/avatars/6", "description": "Gogs is a painless self-hosted Git Service.", "website": "https://gogs.io", "location": "USA" } ]

List user organizations

List public organization memberships for the specified user.

GET /users/:username/orgs 

Response

Status: 200 OK 
[ { "id": 6, "username": "gogs", "full_name": "Gogs", "avatar_url": "/avatars/6", "description": "Gogs is a painless self-hosted Git Service.", "website": "https://gogs.io", "location": "USA" } ]

Get an organization

GET /orgs/:orgname 

Response

Status: 200 OK 
{ "id": 6, "username": "gogs", "full_name": "Gogs", "avatar_url": "/avatars/6", "description": "Gogs is a painless self-hosted Git Service.", "website": "https://gogs.io", "location": "USA" }

Edit an organization

PATCH /orgs/:org 

Parameters

NameTypeDescription
full_namestringFull name of organization
descriptionstringDescription to the organization
websitestringOfficial website
locationstringOrganization location

Example

{ "full_name": "Gogs2", "description": "Gogs is a painless self-hosted Git Service.", "website": "https://gogs.io", "location": "USA" }

Response

Status: 200 OK 
{ "id": 6, "username": "gogs", "full_name": "Gogs2", "avatar_url": "/avatars/6", "description": "Gogs is a painless self-hosted Git Service.", "website": "https://gogs.io", "location": "USA" }
close