---
title: "Create Policy"
method: POST
path: "/v1/policy"
---

# Create Policy

`POST /v1/policy`

## Request

- Base URL: `https://api.xeol.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeol.io/v1/policy`
- Auth: none declared

## Request body

- PoliciesModel
  - `policy_scope` string, required
  - `policy_type` string, required
  - `warn_date` string, date, nullable
  - `deny_date` string, date, nullable
  - `warn_days` integer, nullable
  - `deny_days` integer, nullable
  - `product_name` string, nullable
  - `project_name` string, nullable
  - `cycle` string, nullable
  - `cycle_operator` string, nullable
  - `notary_policy_json` object, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeol/apis/xeol-api.md) - [All operations](https://skmtc.dev/xeol/apis/xeol-api/llms.txt) - [OpenAPI document](https://skmtc.dev/xeol/apis/xeol-api/revisions/545d83b42156?raw)
