---
title: "Update an authz policy"
method: PUT
path: "/authz/policies/{name}"
tags: ["authz-policies"]
---

# Update an authz policy

`PUT /authz/policies/{name}`

(reserved for future use) Validates and registers a new active version of the named policy, then syncs it to OPA.

Required scope: \`policy:authz:manage\`

## Request body

- UpdateAuthzPolicyRequest
  - `rego` string, required
  - `description` string

## Response `200`

Policy updated

- CreateAuthzPolicyResponse
  - `name` string, required
  - `version` integer, required
  - `rego_sha256` string, required
  - `warnings` string[], required

## Other responses

- `400` — Bad Request - the policy failed validation
- `401` — Unauthorized - Authentication failed
- `403` — Forbidden - the API key is missing the scope required by this endpoint
- `503` — Service Unavailable - authz/OPA is not configured in this environment

## Changes

> 65 revisions in range; 12 not diffed.

- **2026-06-17** `05add33422b2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/qlonolink/apis/qaip-apis/changes/authz/policies/:name/put.md)

---

[API](https://skmtc.dev/qlonolink/apis/qaip-apis.md) · [All operations](https://skmtc.dev/qlonolink/apis/qaip-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/qlonolink/apis/qaip-apis/revisions/430440bbcc56?raw)
