---
title: "Update Rule Handler"
method: PUT
path: "/api/rules/{rule_id}"
tags: ["runtime_mutations", "rules"]
---

# Update Rule Handler

`PUT /api/rules/{rule_id}`

## Path parameters

- `rule_id` string, required

## Request body

- UpdateRuleRequest
  - `name` string, nullable
  - `description` string, nullable
  - `content` string, nullable
  - `rule_type` 'always' | 'manual' | 'pipeline'
  - `globs` string[], nullable
  - `project_id` string, nullable
  - `file_path` string, nullable
  - `pipeline` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/quadrillion/apis/quadrillion-cloud-api.md) · [All operations](https://skmtc.net/quadrillion/apis/quadrillion-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quadrillion/quadrillion-cloud-api/versions/399077308c86/schema)
