---
title: "Edit a plan item (theme, prompt, platforms, time)"
method: PATCH
path: "/api/v1/plans/items/{item_id}"
tags: ["plans"]
---

# Edit a plan item (theme, prompt, platforms, time)

`PATCH /api/v1/plans/items/{item_id}`

## Request

- Base URL: `https://api.cadencz.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cadencz.com/api/v1/plans/items/{item_id}`
- Auth: HTTP bearer

## Path parameters

- `item_id` string, required

## Request body

- PlanItemUpdate
  - `theme` string, nullable
  - `angle` string, nullable
  - `prompt` string, nullable
  - `platforms` string[], nullable
  - `scheduled_for` string, date-time, nullable
  - `publish_mode` 'single' | 'long_form' | 'thread', nullable
  - `body_parts` string[], nullable
  - `media_ids` string[], nullable
  - `decision` 'accepted' | 'rejected' | '', nullable

## Response `200`

Successful Response

- PlanItemRead
  - `id` string, required
  - `theme` string, nullable, required
  - `angle` string, nullable, required
  - `platforms` string[], required
  - `why` string, nullable, required
  - `prompt` string, required
  - `scheduled_for` string, date-time, nullable, required
  - `status` string, required
  - `format` string, nullable
  - `publish_mode` string
  - `content_metadata` object
  - `body_parts` string[]
  - `media_ids` string[]
  - `media` MediaRead[]
    - `id` string, required
    - `kind` string, required
    - `url` string, required
    - `alt_text` string, nullable
    - `width` integer, nullable
    - `height` integer, nullable
    - `bytes` integer, nullable
  - `created_at` string, date-time, nullable

## Other responses

- `401`: Missing or invalid Supabase bearer token.
- `404`: The requested resource was not found.
- `422`: Validation Error

---

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