← All tags

Enterprise-Teams API Reference

Endpoints to manage GitHub Enterprise Teams.

5 endpoints tagged enterprise-teams, each listing its parameters and possible responses. Search or scroll the index below to jump to a specific endpoint.

No endpoints match your search.

List enterprise teams

GET /enterprises/{enterprise}/teams

List all teams in the enterprise for the authenticated user

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
pagequerynoThe page number of the results to fetch. For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
403Forbiddenyes

Create an enterprise team

POST /enterprises/{enterprise}/teams

To create an enterprise team, the authenticated user must be an owner of the enterprise.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.

Responses

StatusDescriptionHas JSON body
201Responseyes

Get an enterprise team

GET /enterprises/{enterprise}/teams/{team_slug}

Gets a team using the team's slug. To create the slug, GitHub replaces special characters in the name string, changes all words to lowercase, and replaces spaces with a - separator and adds the "ent:" prefix. For example, "My TEam Näme" would become ent:my-team-name.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
team_slugpathyesThe slug of the team name.

Responses

StatusDescriptionHas JSON body
200Responseyes
403Forbiddenyes

Update an enterprise team

PATCH /enterprises/{enterprise}/teams/{team_slug}

To edit a team, the authenticated user must be an enterprise owner.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
team_slugpathyesThe slug of the team name.

Responses

StatusDescriptionHas JSON body
200Responseyes
403Forbiddenyes

Delete an enterprise team

DELETE /enterprises/{enterprise}/teams/{team_slug}

To delete an enterprise team, the authenticated user must be an enterprise owner.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
team_slugpathyesThe slug of the team name.

Responses

StatusDescriptionHas JSON body
204Responseno
403Forbiddenyes