orgs

Set selected repositories for immutable releases enforcement

Replaces all repositories that have been selected for immutable releases enforcement in an organization. To use this endpoint, the organization immutable releases policy for enforced_repositories must be configured to selected.

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

put/orgs/{org}/settings/immutable-releases/repositories

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/orgs/{org}/settings/immutable-releases/repositories
  • Auth: none declared

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

selected_repository_idsinteger[] required

An array of repository ids for which immutable releases enforcement should be applied. You can only provide a list of repository ids when the enforced_repositories is set to selected. You can add and remove individual repositories using the Enable a selected repository for immutable releases in an organization and Disable a selected repository for immutable releases in an organization endpoints.

Response

Response

Changes

No recorded changes to this operation across all 83 revisions of this API.