{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Replaces all repositories for an organization secret when the `visibility`\nfor repository access is set to `selected`. The visibility is set when you [Create\nor update an organization secret](https://docs.github.com/rest/agents/secrets#create-or-update-an-organization-secret).\n\nAuthenticated users must have collaborator access to a repository to create, update, or read secrets.\n\nOAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."},"secret_name":{"type":"string","description":"The name of the secret."}},"required":["org","secret_name"],"additionalProperties":false},"body":{"type":"object","properties":{"selected_repository_ids":{"type":"array","description":"An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/agents/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/agents/secrets#remove-selected-repository-from-an-organization-secret) endpoints.","items":{"type":"integer"}}},"required":["selected_repository_ids"],"examples":[{"selected_repository_ids":[64780797]}]}},"required":["path","body"],"additionalProperties":false},"name":"Set selected repositories for an organization secret","id":"github.agents.set-selected-repos-for-org-secret","example":{"path":{"org":"example","secret_name":"example"},"body":{"selected_repository_ids":[64780797]}},"maxRequests":1,"summary":false}}