Overview
Organizations allow multiple users to collaborate on projects. Organization owners can manage members, assign roles, and create teams for granular access control.Get Organization
/api/v1/users/{organization_name}/
Retrieve organization details.
Path Parameters
The username of the organization
Response
Organization username
User type:
organizationOrganization email address
URL to the organization’s avatar image
Array of public member usernames
Username of the organization owner
Current user’s role in the organization:
member or adminOrigin of the membership role:
direct or ownerWhether the current user’s membership is publicly visible
Array of team names within the organization
List User’s Organizations
/api/v1/users/{username}/organizations/
Get all organizations for a specific user. Only works for the authenticated user.
Path Parameters
Username of the authenticated user
Response
Returns an array of organization objects with the same structure as Get Organization.List Members
/api/v1/members/{organization}/
Get all members of an organization.
Path Parameters
The username of the organization
Query Parameters
Number of results to return per page
The initial index from which to return the results
Response
Total number of members
URL to the next page of results
URL to the previous page of results
Add Member
/api/v1/members/{organization}/
Add a user as a member of the organization.
Path Parameters
The username of the organization
Request Body
Username of the user to add
Role to assign:
member or adminWhether the membership should be publicly visible
Response
Returns the created member object.Error Responses
Get Member
/api/v1/members/{organization}/{username}/
Get the role of a specific member.
Path Parameters
The username of the organization
Username of the member
Response
Returns a single member object.Update Member
/api/v1/members/{organization}/{username}/
Update a member’s role or visibility. You can also use PUT for a full update.
Path Parameters
The username of the organization
Username of the member
Request Body
New role:
member or adminWhether the membership should be publicly visible
Response
Returns the updated member object.Remove Member
/api/v1/members/{organization}/{username}/
Remove a member from the organization.
Path Parameters
The username of the organization
Username of the member to remove
Response
Returns HTTP 204 No Content on success.Organization Roles
Member
- View organization projects (based on project permissions)
- Be added to teams
- Use organization quota for owned projects
Admin
- All Member permissions
- Add/remove members
- Create/delete teams
- Manage team memberships
- Create organization projects
- Modify organization settings