---
title: "Edit an Auto YARA job"
method: POST
path: "/v1/auto-yara/jobs/edit"
tags: ["Auto Yara"]
---

# Edit an Auto YARA job

`POST /v1/auto-yara/jobs/edit`

Update the generated YARA rule on an existing job with revised detection logic.

## Request body

- EditYaraJobRequest — Request to edit the YARA rule string of an existing job. Requires valid YARA syntax.
  - `job_id` string, required — The unique identifier of the job to edit.
  - `yara_rule_str` string, required — The new YARA rule string to update the job with.

## Response `200`

Successful Response

- EditJobResponse — Result of editing a YARA rule job.
  - `job_id` string, required — The unique identifier of the edited job.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Page 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/revisions/c8c2f68d8b60/schema)
