provider copilot PUT
/enterprises/{enterprise}/copilot/policies/coding_agent @utdk/github
/enterprises/{enterprise}/copilot/policies/coding_agent Set the coding agent policy for an enterprise
Sets the policy for Copilot cloud agent usage across an enterprise.
Enterprise owners can configure whether Copilot cloud agent is enabled for all
organizations, disabled for all organizations, configured by individual organization
admins, or enabled for selected organizations only.
Only enterprise owners can set the coding agent policy for their enterprise.
OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:enterprise` scopes to use this endpoint.
- enterprise path required
- The slug version of the enterprise name.
- string
Try it
Authentication
Configure credentials for GitHub v3 REST API
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.copilot.setEnterpriseCodingAgentPolicy()