{"note":"OpenAPI conversion -- returning structured metadata","name":"vtex-local-policies-system-api","description":"Policies System API","version":"unknown","base_url":"https://apiexamples.vtexcommercestable.com.br","endpoints":6,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Policies System API\n@base https://apiexamples.vtexcommercestable.com.br\n@auth ApiKey X-VTEX-API-AppKey in header | ApiKey X-VTEX-API-AppToken in header | ApiKey VtexIdclientAutCookie in header\n@common_fields {Content-Type: str=application/json # Type of the content being sent., Accept: str=application/json # HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.}\n@endpoints 6\n@toc api(6)\n\n@endpoint GET /api/policy-engine/policies\n@desc Get policy list\n@returns(200) OK\n\n@endpoint POST /api/policy-engine/evaluate\n@desc Evaluate policies\n@required {resource: str # Scope on which this policy must be evaluated., context: map # Conditions that the policy needs to satisfy.}\n@returns(200) OK\n@example_request {\"resource\":\"vrn:vtex.promotions-alert:aws-us-east-1:kamila:master:/_v/promotions_alert\",\"context\":{\"brandId\":\"2000001\",\"discountPercentage\":\"91.00\"}}\n\n@endpoint GET /api/policy-engine/policies/{id}\n@desc Get policy by ID\n@required {id: str # Policy ID.}\n@returns(200) OK\n\n@endpoint POST /api/policy-engine/policies/{id}\n@desc Create policy\n@required {id: str # Policy ID., name: str # Policy name., description: str # Policy description, only for internal use., statements: [map{effect!: str, actions: [map], resource: str, condition: map}] # Requirements for the the policy to be applied.}\n@optional {status: str # The status field defines if the policy is `active` or `inactive`. An `active` policy is enforced, while an `inactive` policy is stored but not applied.}\n@returns(200) OK\n\n@endpoint PUT /api/policy-engine/policies/{id}\n@desc Update policy\n@required {id: str # Policy ID., name: str # Policy name., description: str # Policy description, only for internal use., statements: [map{effect!: str, actions: [map], resource: str, condition: map}] # Requirements for the the policy to be applied.}\n@optional {status: str # The status field defines if the policy is `active` or `inactive`. An `active` policy is enforced, while an `inactive` policy is stored but not applied.}\n@returns(200) OK\n\n@endpoint DELETE /api/policy-engine/policies/{id}\n@desc Delete policy by ID\n@required {id: str # Policy ID.}\n@returns(200) 200 OK\n\n@end\n"}