{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates a campaign 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."},"campaign_number":{"type":"integer","description":"The campaign number."}},"required":["org","campaign_number"],"additionalProperties":false},"body":{"type":"object","additionalProperties":false,"properties":{"name":{"description":"The name of the campaign","type":"string","minLength":1,"maxLength":50},"description":{"description":"A description for the campaign","type":"string","minLength":1,"maxLength":255},"managers":{"description":"The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.","type":"array","maxItems":10,"items":{"type":"string"}},"team_managers":{"description":"The slugs of the teams to set as the campaign managers.","type":"array","maxItems":10,"items":{"description":"The slug of each team","type":"string"}},"ends_at":{"description":"The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.","type":"string","format":"date-time"},"contact_link":{"description":"The contact link of the campaign. Must be a URI.","type":["string","null"],"format":"uri"},"state":{"$ref":"#/definitions/campaign-state"}},"examples":[{"name":"Critical CodeQL alerts"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"campaign-state":{"title":"Campaign state","description":"Indicates whether a campaign is open or closed","type":"string","enum":["open","closed"]}}},"name":"Update a campaign","id":"github.campaigns.update-campaign","example":{"path":{"org":"example","campaign_number":1},"body":{"name":"Critical CodeQL alerts"}},"maxRequests":1,"summary":false}}