v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2023-07-147873273.9 MB
orgs

List custom repository roles in an organization

List the custom repository roles available in this organization. In order to see custom repository roles in an organization, the authenticated user must be an organization owner.

To use this endpoint the authenticated user must be an administrator for the organization or of an repository of the organization and must use an access token with admin:org repo scope. GitHub Apps must have the organization_custom_roles:read organization permission to use this endpoint.

For more information on custom repository roles, see "About custom repository roles."

get/organizations/{organization_id}/custom_roles

Path parameters

organization_idstring required

The unique identifier of the organization.

Response

Response - list of custom role names

total_countinteger

The number of custom roles in this organization

Example response

{
  "total_count": 3
}