{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Detach code security configuration(s) from a set of repositories.\nRepositories will retain their settings but will no longer be associated with the configuration.\n\nThe authenticated user must be an administrator or security manager for the organization to use this endpoint.\n\nRepositories with active enterprise-enforced attachments are skipped unless the authenticated user can manage the enterprise's code security settings; the rest are detached. Inactive enterprise-enforced attachments, such as failed attachments, are detached. The request still returns `204` if every repository is skipped.\n\nOAuth app tokens and classic PATs require the `write:org` scope. Managing enterprise-enforced configurations also requires `admin:enterprise` and is not supported by fine-grained PATs or GitHub App access tokens.","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","additionalProperties":false,"required":["selected_repository_ids"],"properties":{"selected_repository_ids":{"type":"array","description":"An array of repository IDs to detach from configurations. Up to 250 IDs can be provided.","minItems":1,"maxItems":250,"items":{"type":"integer","description":"Unique identifier of the repository."}}},"examples":[{"selected_repository_ids":[32,91]}]}},"required":["path","body"],"additionalProperties":false},"name":"Detach configurations from repositories","id":"github.code-security.detach-configuration","example":{"path":{"org":"example"},"body":{"selected_repository_ids":[32,91]}},"maxRequests":1,"summary":false}}