Skip to main content
PATCH
Update a post

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Path Parameters

pid
string
required

Post ID

Body

application/json

Updated content

first_comment
string

FirstComment replaces the auto-first-comment.

hidden
boolean

Hidden archives the post from default list views when true.

Example:

false

media
object[]

Media is the ordered, agnostic media list. Each item is a url, a media_id, or a platform_attachment_id; order and mixing are preserved. Supersedes media_ids.

media_ids
string[]

MediaIDs replaces the attached media files.

Deprecated: use Media with source_type "media_id". Ignored when media is set.

platform_data
object

PlatformData passes platform-specific fields keyed by platform name (e.g. {"instagram": {"content_type": "feed"}}). Folded into each matching target; a target's own platform_data wins on conflicts.

scheduled_at
string

ScheduledAt changes the scheduled publication time (RFC3339).

Example:

"2026-04-02T14:00:00Z"

segments
object[]

Segments are continuation posts that publish as a native thread on X. Threads chaining is temporarily unavailable.

skip_validation
boolean

SkipValidation bypasses pre-publish validation. The post is scheduled/published as-is and may fail at the platform.

Example:

false

targets
object[]

Targets replaces or updates per-platform target configuration.

text
string

Text replaces the post body. Only for draft/scheduled/failed posts.

Example:

"Updated post content"

title
string

Title replaces the post title.

Example:

"Updated Title"

visibility
enum<string>

Visibility changes who can see the post.

Available options:
public,
private,
connections_only,
logged_in
Example:

"public"

Response

Post updated

created_at
string
Example:

"2026-03-14T09:00:00Z"

hidden
boolean
Example:

false

id
string
Example:

"p_01HZ9X3Q4R5M6N7P8V2K0W1J"

media
object[]
media_ids
string[]

Deprecated: use media.

published_at
string
Example:

"2026-04-01T10:00:05Z"

retry_count
integer
Example:

0

scheduled_at
string
Example:

"2026-04-01T10:00:00Z"

status
enum<string>
Available options:
draft,
scheduled,
publishing,
published,
partial,
failed,
cancelled
Example:

"published"

targets
object[]
text
string
Example:

"Check out our new product launch!"

title
string
Example:

"Exciting News"

updated_at
string
Example:

"2026-03-14T09:00:00Z"

visibility
enum<string>
Available options:
public,
private,
connections_only,
logged_in
Example:

"public"