Organization Object
The Organization object represents an organization in Gitea.The unique identifier of the organization
The username of the organization
The full display name of the organization
The email address of the organization
The URL of the organization’s avatar
The description of the organization
The website URL of the organization
The location of the organization
The visibility level of the organization:
public, limited, or privateWhether repository administrators can change team access
List All Organizations
GET /orgs
Get a list of all public organizations
Query Parameters
Page number of results to return (1-based)
Page size of results
Example Request
Response
Get an Organization
GET /orgs/{org}
Get details about a specific organization
Path Parameters
The name of the organization to retrieve
Example Request
Response
Create an Organization
POST /orgs
Create a new organization
Request Body
Username of the organization (max 40 characters)
The full display name of the organization (max 100 characters)
The email address of the organization (max 255 characters)
The description of the organization (max 255 characters)
The website URL of the organization (max 255 characters)
The location of the organization (max 50 characters)
Visibility level:
public, limited, or privateWhether repository administrators can change team access
Example Request
Response
Update an Organization
PATCH /orgs/{org}
Update an existing organization’s information
Path Parameters
The name of the organization to update
Request Body
The full display name of the organization
The email address of the organization
The description of the organization
The website URL of the organization
The location of the organization
Visibility level:
public, limited, or privateWhether repository administrators can change team access
Example Request
Rename an Organization
POST /orgs/{org}/rename
Rename an existing organization
Path Parameters
The current name of the organization
Request Body
New username for the organization. This name cannot be in use by any other user.
Example Request
Delete an Organization
DELETE /orgs/{org}
Delete an organization
Path Parameters
The name of the organization to delete
Example Request
Organization Members
List Members
Get all members of an organization
Check Membership
Check if a user is a member
Remove Member
Remove a member from the organization
Public Members
List public members of the organization
List Organization Members
Check Organization Membership
204 if the user is a member, 404 otherwise.
Remove Organization Member
List Public Members
Publicize Membership
Conceal Membership
User’s Organizations
List Current User’s Organizations
GET /user/orgs
List all organizations that the authenticated user is a member of
List User’s Organizations
GET /users/{username}/orgs
List all organizations that a specific user is a member of
Organization Permissions
GET /users/{username}/orgs/{org}/permissions
Get a user’s permissions in an organization
Response Fields
Whether the user is an owner of the organization
Whether the user is an admin of the organization
Whether the user can write to the organization
Whether the user can read the organization
Whether the user can create repositories in the organization
Example Request
Response
Activity Feeds
GET /orgs/{org}/activities/feeds
List an organization’s activity feeds
Path Parameters
The name of the organization
Query Parameters
The date of the activities to be found (format: YYYY-MM-DD)
Page number of results to return (1-based)
Page size of results