Update an existing Automation Rule for an Environment.

PUT {{baseUrl}}/orgs/:orgId/apps/:appId/envs/:envId/rules/:ruleId

Request Body

{"active"=>true, "exclude_images_filter"=>false, "images_filter"=>["sample-service"], "match"=>"^pr-[0-9]+-.*$", "type"=>"update", "update_to"=>"branch"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"type":"update","images_filter":["sit anim","sunt"],"update_to":"branch","active":false,"created_at":"2020-06-22T09:37:23.523Z","exclude_images_filter":true,"id":"esse ipsum non","match":"officia irure dolor velit","updated_at":"2020-06-22T09:37:23.523Z"}