---
title: "Update Assignment Endpoint"
method: PATCH
path: "/v1/policies/{policy_id}/assignments"
tags: ["v1-policies"]
---

# Update Assignment Endpoint

`PATCH /v1/policies/{policy_id}/assignments`

## 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/{policy_id}/assignments`
- Auth: none declared

Update an existing assignment's run-order priority for one scope.

The CLI calls this when ``settings set branch_sql --order`` changes the run
order of a hook that already exists (the policy PATCH only touches config).
Scope is named in the body via (scope_type, scope_id) so a policy assigned
to several scopes stays individually addressable.

## Path parameters

- `policy_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[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)
