---
title: "Update Shelf Life Record"
method: PATCH
path: "/shelf-life/{record_id}"
tags: ["shelf-life"]
---

# Update Shelf Life Record

`PATCH /shelf-life/{record_id}`

## Request

- Base URL: `https://api.openproof.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openproof.io/shelf-life/{record_id}`
- Auth: HTTP bearer

Sets the business's own collection-start date and/or retention
duration for a category. expires_at is recomputed here whenever
both are present -- if either is cleared, expires_at goes back to
null rather than showing a stale computed date.

## Path parameters

- `record_id` string, required

## Request body

- ShelfLifeUpdate
  - `collection_started_at` string, date-time, nullable
  - `retention_days` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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