---
title: "Create Policy Endpoint"
method: POST
path: "/v1/policies"
tags: ["v1-policies"]
---

# Create Policy Endpoint

`POST /v1/policies`

## Request

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

Create a new policy for an org. If assign_to_scope is provided, also
create the assignment in the same request and roll the policy back if
assignment fails — CLI settings set uses this to avoid orphan policies.

assign_to_scope shape: {"scope_type": "connectors"|"orgs"|"branches",
"scope_id": "...", "priority": 100 (optional)}. Omit priority on
branch_create_hook assignments to auto-append after existing hooks in the
same scope using HOOK_PRIORITY_GAP.

## Response `200`

Successful Response

- unknown

---

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