---
title: "Changes to Create policy"
method: POST
path: "/api/policy-engine/policies/{id}"
---

# Changes to Create policy

`POST /api/policy-engine/policies/{id}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 7 of 51 revisions.

- **2024-09-24** `f819dda515f1` — 2 warning, 3 info
- **2024-06-20** `1a9c401a96f5` — 1 breaking
- **2023-11-29** `831c5a70e514` — 2 info
- **2023-11-14** `c459ea5a8918` — 2 breaking, 2 warning, 4 info
- **2023-11-13** `93a502eef693` — 4 warning
- **2023-11-13** `d03c6f9386df` — 5 breaking, 39 warning, 39 info
- **2023-11-13** `f1d3994cfb1f` — 2 info

## Changes

- **2024-09-24** `f819dda515f1` — 2 warning, 3 info
  - removed the request property `statements/items/operation`
  - removed the optional property `items/statements/items/operation` from the response with the `200` status
  - added the new optional request property `statements/items/condition/operation`
  - added the new optional request property `status`
  - added the optional property `items/statements/items/condition/operation` to the response with the `200` status
- **2024-06-20** `1a9c401a96f5` — 1 breaking
  - the `statements/items/condition/conditions/items/` request property type/format changed from ``/`` to `object`/``
- **2023-11-29** `831c5a70e514` — 2 info
  - the `effect` request property default value `Allow` was removed
  - the `effect` response's property default value `Allow` was removed for the status `200`
- **2023-11-14** `c459ea5a8918` — 2 breaking, 2 warning, 4 info
  - removed the enum value `numericGreaterThan` of the request property `statements/items/condition/conditions/items/conditions`
  - removed the enum value `stringEquals` of the request property `statements/items/condition/conditions/items/conditions`
  - added the new `numericGreaterThan` enum value to the `items/statements/items/condition/conditions/items/conditions` response property for the response status `200`
  - added the new `stringEquals` enum value to the `items/statements/items/condition/conditions/items/conditions` response property for the response status `200`
  - added the new `numericGreaterThan` enum value to the request property `statements/items/condition/conditions/items/conditions`
  - added the new `stringEquals` enum value to the request property `statements/items/condition/conditions/items/conditions`
  - removed the `numericGreaterThan` enum value from the `items/statements/items/condition/conditions/items/conditions` response property for the response status `200`
  - removed the `stringEquals` enum value from the `items/statements/items/condition/conditions/items/conditions` response property for the response status `200`
- **2023-11-13** `93a502eef693` — 4 warning
  - removed the request property `statements/items/actions/id`
  - removed the request property `statements/items/actions/metadata`
  - removed the optional property `items/statements/items/actions/id` from the response with the `200` status
  - removed the optional property `items/statements/items/actions/metadata` from the response with the `200` status
- **2023-11-13** `d03c6f9386df` — 5 breaking, 39 warning, 39 info
  - request property `statements/items/actions/id` was restricted to a list of enum values
  - request property `statements/items/condition/conditions/items/conditions` was restricted to a list of enum values
  - request property `statements/items/condition/conditions/items/key` was restricted to a list of enum values
  - request property `statements/items/condition/conditions/items/operation` was restricted to a list of enum values
  - request property `statements/items/operation` was restricted to a list of enum values
  - added the new `` enum value to the `items/statements/items/condition/conditions/items/conditions` response property for the response status `200`
  - added the new `DeactivatePromotions` enum value to the `items/statements/items/actions/id` response property for the response status `200`
  - added the new `None` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `None` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `SendEmail` enum value to the `items/statements/items/actions/id` response property for the response status `200`
  - added the new `SendSlackMessage` enum value to the `items/statements/items/actions/id` response property for the response status `200`
  - added the new `and` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `and` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `between` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `between` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `bool` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `bool` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `brandId` enum value to the `items/statements/items/condition/conditions/items/key` response property for the response status `200`
  - added the new `dateTimeUtcGreaterThan` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `dateTimeUtcGreaterThan` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `dateTimeUtcLessThan` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `dateTimeUtcLessThan` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `discountPercentage` enum value to the `items/statements/items/condition/conditions/items/key` response property for the response status `200`
  - added the new `not` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `not` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `numericEquals` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `numericEquals` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `numericGreaterThan` enum value to the `items/statements/items/condition/conditions/items/conditions` response property for the response status `200`
  - added the new `numericGreaterThan` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `numericGreaterThan` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `numericGreaterThanEquals` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `numericGreaterThanEquals` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `numericLessThan` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `numericLessThan` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `numericLessThanEquals` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `numericLessThanEquals` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `or` enum value to the `items/statements/items/condition/conditions/items/operation` response property for the response status `200`
  - added the new `or` enum value to the `items/statements/items/operation` response property for the response status `200`
  - added the new `skuId` enum value to the `items/statements/items/condition/conditions/items/key` response property for the response status `200`
  - added the new `stringEquals` enum value to the `items/statements/items/condition/conditions/items/conditions` response property for the response status `200`
  - …43 more
- **2023-11-13** `f1d3994cfb1f` — 2 info
  - request property `statements/items/effect` deprecated
  - response property `items/statements/items/effect` deprecated

---

[Operation](https://skmtc.dev/vtex/apis/policies-system-api/docs/api/policy-engine/policies/:id/post.md) · [API](https://skmtc.dev/vtex/apis/policies-system-api.md) · [Page](https://skmtc.dev/vtex/apis/policies-system-api/changes/api/policy-engine/policies/:id/post)
