---
title: "Edit a draft or scheduled post"
method: PATCH
path: "/api/posts/{id}"
---

# Edit a draft or scheduled post

`PATCH /api/posts/{id}`

## Request

- Base URL: `https://api.seenpaid.com`
- URL: `https://api.seenpaid.com/api/posts/{id}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.seenpaid.com/authorize`, token URL `https://api.seenpaid.com/token`, scopes: `posts:write`)

Change a post's caption, its scheduled time, or both. Published posts cannot be edited.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdatePostRequest
  - `caption` string
  - `scheduledFor` string, date-time: Must be in the future.

## Response `200`

OK

- object
  - `success` true
  - `data` Post
    - `id` string, uuid
    - `orgId` string, uuid
    - `caption` string
    - `status` 'draft' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'canceled'
    - `scheduledFor` string, date-time, nullable
    - `mediaIds` string[]
    - `createdAt` string, date-time
    - `targets` object[]: One per social account this post targets, with the per-platform publish result once attempted.
      - `socialAccountId` string, uuid
      - `platform` 'x' | 'bluesky' | 'linkedin' | 'instagram' | 'facebook' | 'tiktok' | 'discord' | 'telegram' | 'mastodon' | 'nostr' | 'devto' | 'hashnode' | 'medium' | 'reddit' | 'threads' | 'tumblr' | 'pinterest' | 'vk' | 'slack' | 'wordpress' | 'ghost' | 'lemmy' | 'webhook' | 'microblog' | 'matrix'
      - `status` 'pending' | 'published' | 'failed'
      - `url` string, uri, nullable
      - `error` string, nullable

## Other responses

- `400`: Request body failed Zod validation.
- `401`: Missing or invalid credential (API key or OAuth token).
- `404`: No resource with that id in the caller's org.

---

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