{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Sets the immutable releases policy for repositories in an organization.\n\nOAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."}},"required":["org"],"additionalProperties":false},"body":{"type":"object","properties":{"enforced_repositories":{"type":"string","description":"The policy that controls how immutable releases are enforced in the organization.","enum":["all","none","selected"],"examples":["all"]},"selected_repository_ids":{"type":"array","description":"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](https://docs.github.com/rest/orgs/orgs#enable-a-selected-repository-for-immutable-releases-in-an-organization) and [Disable a selected repository for immutable releases in an organization](https://docs.github.com/rest/orgs/orgs#disable-a-selected-repository-for-immutable-releases-in-an-organization) endpoints.","items":{"type":"integer"}}},"required":["enforced_repositories"],"examples":[{"enforced_repositories":"all"}]}},"required":["path","body"],"additionalProperties":false},"name":"Set immutable releases settings for an organization","id":"github.orgs.set-immutable-releases-settings","example":{"path":{"org":"example"},"body":{"enforced_repositories":"all"}},"maxRequests":1,"summary":false}}