---
title: "Edit an unpublished story"
method: PATCH
path: "/v1/stories/{storyId}"
tags: ["Stories"]
---

# Edit an unpublished story

`PATCH /v1/stories/{storyId}`

## Request

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

Change caption, media, and destinations on an unpublished story. Refuses active, partially published, or already posted stories. Changing a scheduled story changes its future public content. Use scheduleStory or cancelSchedule for timing; edits do not publish.

## Path parameters

- `storyId` string, uuid, required

## Request body

- object
  - `caption` string
  - `storyType` 'image' | 'video'
  - `mediaUrl` string, uri
  - `thumbnailUrl` string, uri, nullable
  - `platforms` string[]
  - `duration` integer
  - `mediaFit` 'contain' | 'cover' | 'fill'
  - `facebookTarget` object
    - `pageId` string, required
    - `pageName` string
  - `tiktokSettings` object

## Response `200`

Story updated.

- object
  - `success` true, required
  - `data` object, required
    - `story` object, required: A Story record — short-lived (24h) content for Instagram, Facebook, or TikTok
      - `id` string, required
      - `app_id` string, required
      - `story_type` 'image' | 'video', required: Story media type
      - `image_url` string, nullable, required
      - `video_url` string, nullable, required
      - `thumbnail_url` string, nullable, required
      - `duration` number, nullable, required
      - `aspect_ratio` string, nullable, required
      - `caption` string, nullable, required
      - `platforms` string[], required
      - `posted_platforms` 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.
      - `scheduled_for` string, date-time, nullable, required
      - `posted_at` string, date-time, nullable, required
      - `expires_at` string, date-time, 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`.
      - `platform_post_ids` object, nullable, required
      - `source_post_id` string, nullable, required
      - `source_video_id` string, nullable, required
      - `facebook_target` object, nullable, required: Facebook page publishing target
        - `pageId` string, required
        - `pageName` string
      - `created_at` string, date-time
      - `updated_at` string, date-time

## Other responses

- `409`: Story is active, posted, or changed concurrently.

---

[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)
