enterprise-admin

Get model policies for an enterprise team

Changed on

Use this endpoint to retrieve Copilot model policy states for an enterprise team, along with the corresponding enterprise-level policies. The response shows which model policies the team can update based on enterprise policy and the available team policy controls.

For models the team can update, the response shows the team’s configured value or optional if the team has not set one. For locked models, it shows the enterprise’s explicit value or the applicable default availability for eligible models. These states are not a final access decision for a user.

Enterprise owners and users with the read_enterprise_ai_controls permission can use this endpoint.

OAuth app tokens and personal access tokens (classic) need the read:enterprise scope to use this endpoint.

get/enterprises/{enterprise}/teams/{team_id}/copilot/model-policies

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/enterprises/{enterprise}/teams/{team_id}/copilot/model-policies
  • Auth: none declared

Path parameters

enterprisestring required

The slug version of the enterprise name.

team_idinteger required

The unique identifier of the team.

Response

OK

Changes