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

# Update Assignment Endpoint

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

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.net/tryardent/apis/fastapi.md) · [All operations](https://skmtc.net/tryardent/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryardent/fastapi/versions/f92d8d54bae2/schema)
