---
title: "Changes to POST /workspaces/{workspace}/policies/"
method: POST
path: "/workspaces/{workspace}/policies/"
---

# Changes to POST /workspaces/{workspace}/policies/

`POST /workspaces/{workspace}/policies/`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 25 revisions.

- **2026-10-13** `287eea61ef65`: 1 info
- **2026-08-26** `ef5b7ff8699d`: 1 warning
- **2026-07-26** `3f44fa7d59b0`: 2 info

## Changes

- **2026-10-13** `287eea61ef65`: 1 info
  - added the optional property `code` to the response with the `422` status
- **2026-08-26** `ef5b7ff8699d`: 1 warning
  - the `rego` request property's maxLength was set to `262144`
- **2026-07-26** `3f44fa7d59b0`: 2 info
  - the endpoint scheme security `apikey` was removed from the API
  - the endpoint scheme security `basic` was removed from the API

---

[Operation](https://skmtc.dev/cloudsmith/apis/cloudsmith-api/docs/workspaces/:workspace/policies/post.md) - [API](https://skmtc.dev/cloudsmith/apis/cloudsmith-api.md) - [Page](https://skmtc.dev/cloudsmith/apis/cloudsmith-api/changes/workspaces/:workspace/policies/post)
