enterprise-admin

Update model policies for an enterprise team

Changed on

Use this endpoint to update Copilot model policies for an enterprise team. Only editable model policies can be updated.

Set a model to enabled to configure a team policy, or to optional to clear the team’s policy for that model. Locked models cannot be updated.

The response contains the same policy state information as the corresponding GET endpoint, including enterprise policies and whether each model policy can be updated. These states do not necessarily determine whether an individual user can access a model.

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

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

patch/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.

Request body

Response

OK

Changes