Skip to content

Get immutable releases settings for an organization

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

Gets 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.

API method documentation

org
required
string

The organization name. The name is not case sensitive.

Immutable releases settings response

Media type application/json
Check immutable releases organization settings

Check immutable releases settings for an organization.

object
enforced_repositories
required

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

string
Allowed values: all none selected
selected_repositories_url

The API URL to use to get or set the selected repositories for immutable releases enforcement, when enforced_repositories is set to selected.

string
Examples
Example default
{
"enforced_repositories": "all"
}