> ## Documentation Index
> Fetch the complete documentation index at: https://usenaive.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit Post

> PATCH /v1/social/posts/:id — Update a draft social post.

<ParamField path="id" type="string" required>
  UUID of the post to edit. Only posts with `draft` status can be edited.
</ParamField>

<ParamField body="content" type="string">
  Updated text content.
</ParamField>

<ParamField body="platforms" type="string[]">
  Updated list of target platforms.
</ParamField>

<ParamField body="platform_data" type="object">
  Updated platform-specific overrides.
</ParamField>

<RequestExample>
  ```bash theme={"theme":"css-variables"}
  curl -X PATCH https://api.usenaive.ai/v1/social/posts/post-uuid \
    -H "Authorization: Bearer nv_sk_live_..." \
    -H "Content-Type: application/json" \
    -d '{
      "content": "Updated post content with new details.",
      "platforms": ["TWITTER", "LINKEDIN", "INSTAGRAM"]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={"theme":"css-variables"}
  {
    "id": "post-uuid",
    "title": "Post",
    "content": "Updated post content with new details.",
    "platforms": ["TWITTER", "LINKEDIN", "INSTAGRAM"],
    "platform_data": null,
    "upload_ids": null,
    "status": "draft",
    "post_id": null,
    "scheduled_at": null,
    "posted_at": null,
    "error": null,
    "analytics": null,
    "created_at": "2026-05-04T09:00:00Z",
    "updated_at": "2026-05-04T09:15:00Z"
  }
  ```
</ResponseExample>
