---
title: "Update YARA rule"
method: PUT
path: "/yara/{ruleName}"
---

# Update YARA rule

`PUT /yara/{ruleName}`

Update a YARA rule's source code and optionally rename it, with server-side recompilation.

## Path parameters

- `ruleName` string, required

## Request body

- object
  - `name` string — New rule filename (can be used to rename)
  - `rule` string — Updated YARA rule content

## Response `200`

Rule updated successfully.

- object — Empty response confirming update.

## Other responses

- `400` — Compilation error or invalid name.
- `404` — Rule not found.

---

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