---
title: "Attach/detach policies on an assistant revision"
method: PUT
path: "/v1/agents/revisions/{revision_id}/policies"
tags: ["policies"]
---

# Attach/detach policies on an assistant revision

`PUT /v1/agents/revisions/{revision_id}/policies`

## Path parameters

- `revision_id` string, uuid, required

## Request body

- PolicyAttachmentUpdate — Full-replace of an assistant revision's policy attachment. ``policy_refs`` is the complete attached set (``[]`` detaches all; omit to leave unchanged). ``policies_enabled`` flips the per-revision master switch; omit to leave unchanged.
  - `policy_refs` PolicyRefSpec[], nullable
    - `policy_id` string, uuid, required
  - `policies_enabled` boolean, nullable

## Response `200`

Successful Response

- PolicyAttachmentResponse — The assistant revision's current policy attachment after a write/read.
  - `revision_id` string, uuid, required
  - `policies_enabled` boolean, required
  - `policy_refs` object[]
  - `inert_tool_policies` InertToolPolicy[]
    - `policy_id` string, uuid, required
    - `name` string, required
    - `tool_target` string, required
    - `reason` string

## Other responses

- `400` — Bad request
- `401` — Authentication required
- `404` — Resource not found
- `422` — Validation Error

---

[API](https://skmtc.net/oneloop-hq/apis/feather-api.md) · [All operations](https://skmtc.net/oneloop-hq/apis/feather-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneloop-hq/feather-api/revisions/888bdd5c076e/schema)
