Update post
Changed onUpdate an existing post. Draft, scheduled, failed, partial, and cancelled posts can be edited. Published posts can only have their recycling config updated.
To promote a draft to scheduled, send isDraft: false together with scheduledFor (or publishNow: true, or queuedFromProfile). If isDraft is omitted the post keeps its current draft status, so sending only scheduledFor to a draft returns 200 but the post remains a draft.
Non-draft updates run the same per-platform validation as post creation (media requirements, platform-specific field rules, etc.) against the resulting platforms, returning 400 on failure.
Request
- Base URL: https://zernio.com/api
- URL: https://zernio.com/api/v1/posts/{postId}
- Auth: HTTP bearer
Path parameters
Request body
Example request
{
"mediaItems": [
{
"subtitles": [
{
"url": "https://media.zernio.com/temp/walkthrough.en.srt",
"language": "en"
}
]
}
],
"platforms": [
{
"platform": "twitter",
"customMedia": [
{
"subtitles": [
{
"url": "https://media.zernio.com/temp/walkthrough.en.srt",
"language": "en"
}
]
}
]
}
],
"recycling": {
"gap": 2,
"expireCount": 5
}
}Response
Post updated
Example response
{
"post": {
"mediaItems": [
{
"subtitles": [
{
"url": "https://media.zernio.com/temp/walkthrough.en.srt",
"language": "en"
}
]
}
],
"platforms": [
{
"platform": "twitter",
"customMedia": [
{
"subtitles": [
{
"url": "https://media.zernio.com/temp/walkthrough.en.srt",
"language": "en"
}
]
}
],
"status": "pending",
"platformPostId": "1234567890123456789",
"platformPostUrl": "https://twitter.com/acmecorp/status/1234567890123456789"
}
]
}
}Changes
- warning
added the new
pending_approvalenum value to the/response property for the response status - warning
added the new
pending_approvalenum value to the/response property for the response status - info
added the new optional request property
- warning
- warning
added the new
webflowenum value to the////////response property for the response status - warning
added the new
webflowenum value to the////////response property for the response status
- warning