---
title: "Update a Backfill rule"
method: PATCH
path: "/backfill/rules/{id}"
tags: ["Backfill"]
---

# Update a Backfill rule

`PATCH /backfill/rules/{id}`

## Request

- Base URL: `https://api.cavuno.com/v1`
- URL: `https://api.cavuno.com/v1/backfill/rules/{id}`
- Auth: HTTP bearer

Partially update a Backfill rule. Omitted fields keep their current values, matching the dashboard edit form. The resulting rule must retain at least one card or nonempty structured filter. Requires an `Idempotency-Key` header.

## Path parameters

- `id` string, required: The Backfill rule ID returned by create or list endpoints.

## Request body

- UpdateBackfillRuleBody
  - `name` string
  - `matchMode` 'any' | 'all'
  - `rules` object[]
    - `match` 'any' | 'all', required
    - `conditions` object[], required
      - `field` 'title' | 'description', required
      - `operator` 'contains_any' | 'contains_all' | 'is_not', required
      - `terms` string[], required
  - `filters` object
    - `countries` string[]
    - `subdivisions` string[]
    - `seniorities` string[]
    - `employmentTypes` string[]
    - `workplaceTypes` string[]

## Response `200`

The updated Backfill rule.

- BackfillRule
  - `id` string, required: Stable Cavuno-owned resource ID.
  - `object` 'backfill_rule', required
  - `name` string, required
  - `matchMode` 'any' | 'all', required
  - `rules` object[], required
    - `match` 'any' | 'all', required
    - `conditions` object[], required
      - `field` 'title' | 'description', required
      - `operator` 'contains_any' | 'contains_all' | 'is_not', required
      - `terms` string[], required
  - `filters` object, required
    - `countries` string[]
    - `subdivisions` string[]
    - `seniorities` string[]
    - `employmentTypes` string[]
    - `workplaceTypes` string[]
  - `createdAt` string, nullable, required
  - `updatedAt` string, nullable, required

## Other responses

- `default`: An error. Every non-2xx response uses the same envelope; see the Errors section of the introduction.

## Changes

- **2026-10-19** `c34152c38176`: 1 info
  - added the optional property `error/upgrade` to the response with the `default` status

[Operation history](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/changes/backfill/rules/:id/patch.md)

---

[API](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api.md) · [All operations](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/revisions/d5974dabff14?raw)
