Skip to main content
PUT
Replace a post

Authorizations

Authorization
string
header
required

A workspace API key (pst_live_โ€ฆ).

Path Parameters

postId
string<uuid>
required

Body

content
null | string
required

The text, for every target without its own.

targets
null | object[]
required

Where it goes: one entry per account.

schedule
null | object
required

When it goes out. Missing: a draft.

mediaIds
null | string<uuid>[]

Ready media from the library, in order. At most 10.

version
null | integer<uint32>

PUT only: the version you read. A post changed since answers 409 instead of being overwritten. Missing: last write wins.

Response

200 - application/json

OK

id
string<uuid>
required
status
enum<string>
required
Available options:
draft,
scheduled,
publishing,
published,
partial,
failed
content
string
required
scheduledAt
null | string<date-time>
required
scheduledAtLocal
null | string
required

scheduledAt on the workspace's clock.

timeZone
string
required
publishedAt
null | string<date-time>
required
editable
boolean
required

Whether it can still be changed: not once published.

version
integer<uint32>
required

Send it back with PUT or retry to detect changes made since.

author
null | object
required
apiKey
null | object
required
targets
object[]
required
media
object[]
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required