{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Sets the policy for Copilot cloud agent usage across an enterprise.\n\nEnterprise owners can configure whether Copilot cloud agent is enabled for all\norganizations, disabled for all organizations, configured by individual organization\nadmins, or enabled for selected organizations only.\n\nOnly enterprise owners can set the coding agent policy for their enterprise.\n\nOAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:enterprise` scopes to use this endpoint.","properties":{"path":{"type":"object","properties":{"enterprise":{"type":"string","description":"The slug version of the enterprise name."}},"required":["enterprise"],"additionalProperties":false},"body":{"type":"object","properties":{"policy_state":{"type":"string","description":"The policy state for Copilot cloud agent in the enterprise. Can be one of `enabled_for_all_orgs`, `disabled_for_all_orgs`, `enabled_for_selected_orgs`, or `configured_by_org_admins`.","enum":["enabled_for_all_orgs","disabled_for_all_orgs","enabled_for_selected_orgs","configured_by_org_admins"]}},"required":["policy_state"],"examples":[{"policy_state":"enabled_for_all_orgs"}]}},"required":["path","body"],"additionalProperties":false},"name":"Set the coding agent policy for an enterprise","id":"github.copilot.set-enterprise-coding-agent-policy","example":{"path":{"enterprise":"example"},"body":{"policy_state":"enabled_for_all_orgs"}},"maxRequests":1,"summary":false}}