/orgs/{org}/copilot/content_exclusionSet Copilot content exclusion rules for an organization
Replaces an organization's Copilot content exclusion path rules. Use org to identify the organization and submit an object whose values are arrays of supported exclusion entries; the authenticated user must be an organization owner using an OAuth app token or classic personal access token with the copilot scope. Existing comments are deleted, and duplicate keys overwrite earlier entries so only the final value is saved.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
A 401 is returned when the request lacks valid authentication. A 403 is returned when the authenticated user is not an organization owner or the token lacks the copilot scope, and a 404 is returned when org does not identify an accessible organization. A 413 indicates that the request payload is too large, a 422 indicates validation failure or suspected spam, and a 500 indicates an internal server error; each rule value must be an array containing supported path strings or conditional rule objects.