Set immutable releases settings for an organization
PUT
/orgs/{org}/settings/immutable-releases
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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
The organization name. The name is not case sensitive.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
enforced_repositories
required
The policy that controls how immutable releases are enforced in the organization.
string
selected_repository_ids
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.
Array<integer>
Examples
Exampledefault
{ "enforced_repositories": "all"}Responses
Section titled “Responses”Response