v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
orgs

Set immutable releases settings for an organization

Sets the immutable releases policy for repositories in an organization.

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

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

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

enforced_repositories'all' | 'none' | 'selected' required

The policy that controls how immutable releases are enforced in the organization.

selected_repository_idsinteger[]

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.

Example request

{
  "enforced_repositories": "all"
}

Response

Response