---
title: "Update a visibility rule"
method: PATCH
path: "/v1/iam/rules/{id}"
tags: ["Team"]
---

# Update a visibility rule

`PATCH /v1/iam/rules/{id}`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/iam/rules/{id}`
- Auth: HTTP bearer

Changes a rule the person manages.

Scope: `documents:write`. The person behind the credential needs the `ingest` permission
(Members and above by default).

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string
  - `condition_type` 'source_connection' | 'document_type' | 'tag'
  - `condition_value` string
  - `principals` object[]
    - `principal_type` 'user' | 'role' | 'uploader', required
    - `principal_id` string
  - `template_key` string

## Response `200`

Update a visibility rule: done.

- union
  - object
  - unknown[]
    - unknown

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/iam/rules/:id/patch.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
