---
title: "Batch Update"
method: PATCH
path: "/v1/batches/{batch_id}"
---

# Batch Update

`PATCH /v1/batches/{batch_id}`

## Request

- Base URL: `https://api.logimu.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.logimu.com/v1/batches/{batch_id}`
- Auth: none declared

Edit a batch's serving settings (mode and/or max_age_days). Applies to
FUTURE runs only: every run snapshots the settings it launches with (0537)
and keeps them — an in-flight run finishes under its launch settings, and
past runs' recorded values never change. Same validation as create:
Walmart + live is a loud 422 (R14) — a mode is never silently downgraded.

## Path parameters

- `batch_id` integer, required

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable

## Request body

- BatchUpdateRequest
  - `mode` string, nullable: cache = warehouse only; live = scrape every row; auto = warehouse when fresh enough, scrape the rest. Walmart: cache/auto only (422 on live). seller_products batches: cache or live. Kinds without a mode: 422.
  - `max_age_days` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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