v1-policies

Create Policy Endpoint

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.

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

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 5 revisions of this API.