---
title: "Changes to Create Policy"
method: POST
path: "/policies"
---

# Changes to Create Policy

`POST /policies`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 5 revisions.

- **2026-10-22** `ed4b27064dfa`: 1 breaking, 11 info

## Changes

- **2026-10-22** `ed4b27064dfa`: 1 breaking, 11 info
  - the `detail` response's property type changed from `array` to `string` for status `422`
  - added the new optional request property `rule_block_messages`
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `500`
  - added the optional property `details` to the response with the `422` status
  - added the optional property `error` to the response with the `422` status
  - added the optional property `error_code` to the response with the `422` status
  - added the optional property `rule_block_messages` to the response with the `201` status
  - the response property `detail` became required for the status `422`
  - added the required property `message` to the response with the `422` status

---

[Operation](https://skmtc.dev/grayswan/apis/gray-swan-ai-api/docs/policies/post.md) - [API](https://skmtc.dev/grayswan/apis/gray-swan-ai-api.md) - [Page](https://skmtc.dev/grayswan/apis/gray-swan-ai-api/changes/policies/post)
