Add organizations to the enterprise coding agent policy
Enables Copilot cloud agent for the specified organizations within the enterprise.
The enterprise’s coding agent policy must be set to enabled_for_selected_orgs before
using this endpoint. Organizations can be specified by login or matched via custom properties.
Only organizations that have Copilot enabled and belong to the enterprise will be affected.
Only enterprise owners can add organizations to the coding agent policy.
OAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The slug version of the enterprise name.
Request Body required
Section titled “ Request Body required ”The organizations to enable Copilot cloud agent for
object
List of organization logins within the enterprise to enable Copilot cloud agent for.
List of custom property filters to match organizations. Organizations matching any of the specified property name/value pairs will be included. This is a one-time operation, setting the property on an organization in the future will not automatically update its coding agent policy.
object
The name of the custom property to filter by.
The values of the custom property to match.
Examples
Add organizations that match a login or have a custom property
{ "organizations": [ "my-org-1", "my-org-2" ], "custom_properties": [ { "property_name": "department", "values": [ "engineering", "security" ] } ]}Responses
Section titled “ Responses ”A header with no content is returned.
Bad Request
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Scim Error
object
Example generated
{ "message": "example", "documentation_url": "example", "detail": "example", "status": 1, "scimType": "example", "schemas": [ "example" ]}