copilot

Update model policies for an organization

Changed on

Use this endpoint to set explicit Copilot model policies and default availability for an organization. All policies in the request are updated atomically, meaning if any change in the request cannot be applied, none of the changes are saved.

Use the model_name values returned by the "Get model policies for an organization" endpoint. Models with an inherited enterprise policy are locked and cannot be updated. Default availability cannot be updated when its editable value is false.

The response contains the effective policies for all models available to the organization, not only the policies updated by the request.

The organization must either be independent or belong to an enterprise that is not using enterprise teams for model policy.

Organization owners can use this endpoint.

OAuth app tokens and personal access tokens (classic) need the admin:org or repo scope to use this endpoint. Organization SAML authorization and OAuth app access restrictions apply.

patch/orgs/{org}/copilot/model-policies

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/orgs/{org}/copilot/model-policies
  • Auth: none declared

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

Response

OK

Changes