apicheats.dev Cheat sheet Raw .md
PUT

Try PUT /enterprises/{enterprise}/copilot/policies/coding_agent — GitHub API

GitHub playground

Set the coding agent policy for an enterprise

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

1 body fields
  • policy_state · required · string — 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`.