{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Lists campaigns in an organization.\n\nThe authenticated user must be an owner or security manager for the organization to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."}},"required":["org"],"additionalProperties":false},"query":{"type":"object","properties":{"page":{"type":"integer","default":1,"description":"The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""},"per_page":{"type":"integer","default":30,"description":"The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""},"direction":{"type":"string","enum":["asc","desc"],"default":"desc","description":"The direction to sort the results by."},"state":{"$ref":"#/definitions/campaign-state","description":"If specified, only campaigns with this state will be returned."},"sort":{"type":"string","enum":["created","updated","ends_at","published"],"default":"created","description":"The property by which to sort the results."}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false,"definitions":{"campaign-state":{"title":"Campaign state","description":"Indicates whether a campaign is open or closed","type":"string","enum":["open","closed"]}}},"name":"List campaigns for an organization","id":"github.campaigns.list-org-campaigns","example":{"path":{"org":"example"}},"maxRequests":1,"summary":false}}