{"method":"POST","path":"https://api.revcent.com/v2/campaigns/{campaign_id}","summary":"Edit A Campaign","description":"Edit a previously created campaign using the campaign ID.","operationId":"EditCampaign","parameters":[{"in":"path","name":"campaign_id","description":"The campaign ID","required":true,"schema":{"type":"string","title":"Campaign ID","description":"A 20 character campaign ID.","minLength":20,"maxLength":20}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"description":"The campaign name. Must be unique from other campaign names.","type":"string"},"description":{"description":"The campaign description.","type":"string"},"enabled":{"description":"Whether the campaign is enabled or disabled.","type":"boolean"},"organization":{"items":{"type":"string","description":"A 20 character organization ID.","minLength":20,"maxLength":20},"type":"array","description":"An array of organization ID's."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"API call response code.","type":"integer","format":"int32","enum":[1]},"campaign_id":{"type":"string","title":"Campaign ID","description":"A 20 character campaign ID.","minLength":20,"maxLength":20},"campaign_name":{"type":"string"},"organization":{"items":{"additionalProperties":false,"properties":{"id":{"type":"string","description":"A 20 character organization ID.","minLength":20,"maxLength":20},"name":{"type":"string","description":"Organization name."}},"type":"object"},"type":"array","description":"Any organizations associated with the campaign."},"result":{"type":"string"}},"type":"object","additionalProperties":false}}},"description":"Successful response."},"default":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"This value indicates that there is an error. Will always be 0.","type":"integer","enum":[0]},"error_code":{"description":"The specific error code.","type":"string"},"message":{"description":"A human readable description of the error.","type":"string"},"result":{"description":"A description of the API call result.","type":"string"}},"title":"APIStandardErrors","type":"object","additionalProperties":false}}},"description":"Error response."}}}