Update model policies for an enterprise team
Changed onUse 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.
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
The slug version of the enterprise name.
The unique identifier of the team.
Request body
Response
OK
Changes
- info
endpoint added
- info