---
title: "Patch a post"
method: PATCH
path: "/v1/posts/{postId}"
tags: ["Posts"]
---

# Patch a post

`PATCH /v1/posts/{postId}`

## Request

- Base URL: `https://www.postquick.ai/api`
- URL: `https://www.postquick.ai/api/v1/posts/{postId}`
- Auth: HTTP bearer

Partial update — only provided fields change. Refuses with 409 if the post has already been published (the platforms would not reflect the change).

## Path parameters

- `postId` string, required: Post ID

## Request body

- object: Partial update — only provided fields change. Per-platform image limits apply to publishable posts: X/Twitter 4, Threads 20.
  - `content` string
  - `postType` 'text' | 'image' | 'carousel' | 'video': Post content type
  - `platforms` string[]
  - `imageUrl` string, nullable
  - `imageUrls` string[], nullable
  - `videoUrl` string, nullable
  - `scheduledFor` string, date-time, nullable
  - `linkedinTarget` object, nullable: LinkedIn publishing target
    - `type` 'personal' | 'organization', required
    - `organizationId` string
  - `facebookTarget` object, nullable: Facebook page publishing target
    - `pageId` string, required
    - `pageName` string
  - `threadParts` object[], nullable
    - `text` string, required
    - `image_urls` string[]
    - `video_url` string, uri
    - `post_type` 'text' | 'image' | 'carousel' | 'video'

## Response `200`

Post updated.

- object
  - `success` true, required
  - `data` object, required
    - `post` object, required: A social media post record
      - `id` string, required
      - `app_id` string, required
      - `content` string, required
      - `status` 'pending' | 'draft' | 'scheduled' | 'processing' | 'posted' | 'published' | 'partial' | 'failed', required: Post lifecycle status. `partial` indicates at least one targeted platform succeeded and at least one failed — check `platform_errors` for the per-platform breakdown.
      - `post_type` 'text' | 'image' | 'carousel' | 'video', required: Post content type
      - `platforms` string[], nullable, required
      - `posted_platforms` string[], nullable, required
      - `image_url` string, nullable, required
      - `image_urls` string[], nullable, required
      - `video_url` string, nullable, required
      - `scheduled_for` string, date-time, nullable, required
      - `posted_at` string, date-time, nullable, required
      - `thread_parts` object[], nullable, required
        - `text` string, required
        - `image_urls` string[]
        - `video_url` string, uri
        - `post_type` 'text' | 'image' | 'carousel' | 'video'
      - `linkedin_target` object, nullable, required: LinkedIn publishing target
        - `type` 'personal' | 'organization', required
        - `organizationId` string
      - `facebook_target` object, nullable, required: Facebook page publishing target
        - `pageId` string, required
        - `pageName` string
      - `platform_post_ids` object, nullable, required
      - `error_message` string, nullable, required
      - `platform_errors` object, nullable, required: Per-platform error messages keyed by platform name. Populated when `status` is `partial` or `failed`.
      - `is_manual` boolean, nullable, required
      - `created_at` string, date-time
      - `updated_at` string, date-time

## Other responses

- `409`: Post has already been published and cannot be edited.

---

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