---
title: "Update rule"
method: PUT
path: "/api/v1/rules/{id}"
tags: ["Automation Rules"]
---

# Update rule

`PUT /api/v1/rules/{id}`

## Request

- Base URL: `https://numonic.ai`
- URL: `https://numonic.ai/api/v1/rules/{id}`
- Auth: API key in header `x-api-key`

Update an automation rule.

## Path parameters

- `id` string, required: Automation rule hash (40-char hex SHA-1)

## Request body

- UpdateRuleRequest
  - `name` string
  - `description` string
  - `trigger_config` object
    - `type` 'event' | 'schedule' | 'watch', required
  - `enabled` boolean
  - `rate_limit_config` object
    - `max_per_minute` integer
    - `max_per_hour` integer
  - `pipeline_vars` object

## Response `200`

Rule updated

- SuccessMessage
  - `message` string, required: Human-readable success message

## Other responses

- `404`: Rule not found

---

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