{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"> [!NOTE]\n> This endpoint is in public preview and is subject to change.\n\nSets the policy for which repositories in an organization can use Copilot cloud agent.\n\nOrganization owners can configure whether Copilot cloud agent is enabled for\nall repositories, selected repositories, or no repositories owned by the organization.\n\nOAuth app 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":{"enabled_repositories":{"type":"string","description":"The policy for which repositories can use Copilot cloud agent. Can be one of `all`, `selected`, or `none`.","enum":["all","selected","none"]}},"required":["enabled_repositories"],"examples":[{"enabled_repositories":"selected"}]}},"required":["path","body"],"additionalProperties":false},"name":"Set Copilot cloud agent permissions for an organization","id":"github.copilot.set-copilot-coding-agent-permissions-organization","example":{"path":{"org":"example"},"body":{"enabled_repositories":"selected"}},"maxRequests":1,"summary":false}}