{ "operationId": "put-apipolicy-enginepoliciesid", "method": "PUT", "path": "/api/policy-engine/policies/{id}", "summary": "VTex Update policy", "requestExamples": [], "responseExamples": [ { "status": "200", "contentType": "application/octet-stream", "example": [ { "id": "pa_test_001", "name": "TestAlarmBerenice", "description": "TesteMarcosPromotionsAlert", "statements": [ { "effect": "Allow", "actions": [ { "id": "SendSlackMessage", "metadata": { "channel": "C01NJFF35R6", "relatedUsers": [ "URUNDC2NB" ], "alertDescription": "Avoid selling products from Berenice with a discount greater than 40%." } } ], "resource": "vrn:vtex.promotions-alert:aws-us-east-1:kamila:master:/_v/promotions_alert", "condition": { "conditions": [ { "conditions": [], "operation": "stringEquals", "key": "brandId", "values": [ "2000001" ] }, { "conditions": [], "operation": "numericGreaterThan", "key": "discountPercentage", "values": [ "40.00" ] } ], "operation": "and" } } ] } ] } ] }