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

# Create Policy

`POST /v1/policy`

## 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/fastapi.md) · [All operations](https://skmtc.dev/xeol/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xeol/fastapi/revisions/545d83b42156/schema)
