---
title: "Update a policy rule"
method: PUT
path: "/api/v1/policy/automation/{ruleId}"
tags: ["Policy Rules"]
---

# Update a policy rule

`PUT /api/v1/policy/automation/{ruleId}`

## Request

- Base URL: `https://api.tuteliq.ai`
- URL: `https://api.tuteliq.ai/api/v1/policy/automation/{ruleId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Update an existing policy rule. Partial updates are supported.

## Path parameters

- `ruleId` string, required

## Request body

- object
  - `name` string
  - `enabled` boolean
  - `endpoints` string[]
  - `conditions` object
    - `min_risk_score` number
    - `min_severity` 'low' | 'medium' | 'high' | 'critical'
    - `categories` string[]
    - `age_groups` string[]
  - `action` object
    - `type` 'block' | 'flag' | 'escalate' | 'notify' | 'log_only', required
    - `escalate_to` string
    - `notify_channel` string
    - `message` string
    - `override_severity` string
  - `priority` integer

## Response `200`

Default Response

- object
  - `success` boolean
  - `rule` object
    - `id` string
    - `name` string
    - `enabled` boolean
    - `endpoints` string[]
    - `conditions` object
      - `min_risk_score` number
      - `min_severity` 'low' | 'medium' | 'high' | 'critical'
      - `categories` string[]
      - `age_groups` string[]
    - `action` object
      - `type` 'block' | 'flag' | 'escalate' | 'notify' | 'log_only', required
      - `escalate_to` string
      - `notify_channel` string
      - `message` string
      - `override_severity` string
    - `priority` integer
    - `created_at` string
    - `updated_at` string

---

[API](https://skmtc.dev/tuteliq/apis/tuteliq-api.md) · [All operations](https://skmtc.dev/tuteliq/apis/tuteliq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tuteliq/apis/tuteliq-api/revisions/8490332e0031?raw)
