---
title: "Update a post draft"
method: PATCH
path: "/v1/posts/drafts/{id}"
tags: ["Posts"]
---

# Update a post draft

`PATCH /v1/posts/drafts/{id}`

## Request

- Base URL: `https://api.taplio.com`
- URL: `https://api.taplio.com/v1/posts/drafts/{id}`
- Auth: HTTP bearer

Both fields are optional and replace what they name: omit `content` to attach media without touching the text. The draft must still end up with text or media. A patch carrying neither field is refused with `required_one_of` on `body`; one that would empty the draft, such as `content: ""` on a draft with no media, with `invalid_value` on `body.content`. Both answer `400 validation_failed`.

## Path parameters

- `id` string, required

## Request body

- UpdatePostDraftBody
  - `content` string
  - `media_ids` string[]

## Response `200`

Updated post draft.

- Draft
  - `content` string, required
  - `created_at` string, date-time, required
  - `id` string, required
  - `media` MediaRef[]
    - `id` string, required
    - `type` 'image' | 'video' | 'document' | 'carousel', required
    - `url` string, uri
  - `status` 'draft', required

## Other responses

- `400`: Validation failed.
- `401`: Missing or invalid API key.
- `402`: Subscription payment failed.
- `403`: Subscription does not allow this request.
- `404`: Resource not found.
- `409`: Resource state precludes this request.
- `422`: Request semantically rejected.
- `429`: Rate limit exceeded.
- `500`: Internal server error.
- `503`: Upstream unavailable.

---

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