{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"> [!NOTE]\n> This endpoint is in public preview and is subject to change.\n\nSets Copilot content exclusion path rules for an organization.\nTo configure these settings, go to the organization's settings on GitHub.\nFor more information, see \"[Excluding content from GitHub Copilot](https://docs.github.com/copilot/managing-copilot/configuring-and-auditing-content-exclusion/excluding-content-from-github-copilot#configuring-content-exclusions-for-your-organization).\"\n\nOrganization owners can set Copilot content exclusion rules for the organization.\n\nOAuth app tokens and personal access tokens (classic) need the `copilot` scope to use this endpoint.\n\n> [!CAUTION]\n> * At this time, the API does not support comments. When using this endpoint, any existing comments in your rules will be deleted.\n> * At this time, the API does not support duplicate keys. If you submit content exclusions through the API with duplicate keys, only the last occurrence will be saved. Earlier entries with the same key will be overwritten.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."}},"required":["org"],"additionalProperties":false},"body":{"type":"object","additionalProperties":{"type":"array","items":{"anyOf":[{"type":"string","description":"The path to the file that will be excluded."},{"type":"object","properties":{"ifAnyMatch":{"type":"array","items":{"type":"string"}}},"required":["ifAnyMatch"],"additionalProperties":false},{"type":"object","properties":{"ifNoneMatch":{"type":"array","items":{"type":"string"}}},"required":["ifNoneMatch"],"additionalProperties":false}]}},"examples":[{"octo-repo":["/src/some-dir/kernel.rs"]}]}},"required":["path","body"],"additionalProperties":false},"name":"Set Copilot content exclusion rules for an organization","id":"github.copilot.set-copilot-content-exclusion-for-organization","example":{"path":{"org":"example"},"body":{"octo-repo":["/src/some-dir/kernel.rs"]}},"maxRequests":1,"summary":false}}