> ## Documentation Index
> Fetch the complete documentation index at: https://docs.throttlr.yashjejurkar.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Rule

> Update a rate limit rule's configuration.

```http theme={null}
PUT /rules/rule/{ruleId}
```

**Headers:** `Authorization: Bearer <token>`

**Request body** (all fields optional — send only what you want to change):

```json theme={null}
{
  "limit": 20,
  "window": 3600,
  "algorithm": "SLIDING_WINDOW"
}
```

**Response (200):**

```json theme={null}
{
  "id": "rule_abc123",
  "name": "send_email",
  "limit": 20,
  "window": 3600,
  "algorithm": "SLIDING_WINDOW",
  "updatedAt": "2026-04-01T10:00:00.000Z"
}
```

<Note>
  Rule `name` cannot be updated via this endpoint. Delete and recreate the rule if you need to rename it.
</Note>
