---
title: "Changes to Create a new policy set"
method: POST
path: "/zones/{zone_id}/policy-sets"
---

# Changes to Create a new policy set

`POST /zones/{zone_id}/policy-sets`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 4 of 23 revisions.

- **2026-06-17** `1a0dd4d857ee` — 3 breaking, 6 info
- **2026-04-20** `932699a5ea16` — 2 info
- **2026-04-02** `aee6e66de0d3` — 1 info
- **2026-03-16** `d3d69f45bfed` — 1 info

## Changes

- **2026-06-17** `1a0dd4d857ee` — 3 breaking, 6 info
  - removed the enum value `resource` of the request property `scope_type`
  - removed the enum value `session` of the request property `scope_type`
  - removed the enum value `user` of the request property `scope_type`
  - added the new optional request property `target_type`
  - request property `scope_type` deprecated
  - added the optional property `allOf[subschema #2]/target_id` to the response with the `201` status
  - response property `allOf[#/components/schemas/pdp_PolicySet]/scope_type` deprecated
  - response property `allOf[subschema #2]/scope_target_id` deprecated
  - added the required property `allOf[#/components/schemas/pdp_PolicySet]/target_type` to the response with the `201` status
- **2026-04-20** `932699a5ea16` — 2 info
  - added the optional property `allOf[subschema #2]/shadow_version` to the response with the `201` status
  - added the optional property `allOf[subschema #2]/shadow_version_id` to the response with the `201` status
- **2026-04-02** `aee6e66de0d3` — 1 info
  - the endpoint scheme security `OAuth2` was added to the API
- **2026-03-16** `d3d69f45bfed` — 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/keycardai/apis/untitled-api/docs/zones/:zone_id/policy-sets/post.md) · [API](https://skmtc.dev/keycardai/apis/untitled-api.md) · [Page](https://skmtc.dev/keycardai/apis/untitled-api/changes/zones/:zone_id/policy-sets/post)
