PUT /enterprises/{enterprise}/copilot/policies/coding_agent

Sets the policy for Copilot coding agent usage across an enterprise.

Enterprise owners can configure whether Copilot coding 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.

Servers

Path parameters

Name Type Required Description
enterprise String Yes

The slug version of the enterprise name.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
policy_state String Yes

The policy state for Copilot coding 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.

Valid values:

  • "enabled_for_selected_orgs"
  • "enabled_for_all_orgs"
  • "disabled_for_all_orgs"
  • "configured_by_org_admins"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.