enterprise-admin
Remove an enterprise role from a team
Removes an enterprise role from a team in an enterprise.
[!WARNING] This API is not available for Copilot Business for non-GHE.
To use this endpoint, the authenticated user must be one of:
- An administrator for the enterprise.
- A user, or a user on a team, with the fine-grained permission write_enterprise_custom_enterprise_role in the enterprise.
OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
delete/enterprises/{enterprise}/enterprise-roles/teams/{team_slug}/{role_id}
Path parameters
enterprisestring required
The slug version of the enterprise name.
team_slugstring required
The slug of the enterprise team name.
role_idinteger required
The unique identifier of the role.
Response
Response