Create a new Automation Rule for an Environment.

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

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

{"active":true,"created_at":"2021-07-22T14:53:27Z","created_by":"0dbbdc88-b125-47f1-9a96-6c4c9d6ddc70","exclude_images_filter":false,"images_filter":["sample-service"],"match":"^pr-[0-9]+-.*$","type":"update","update_to":"branch"}