Posts
Approve or reject a post
Changed onApproves or rejects a post saved with requiresApproval: true (status pending_approval). approve schedules the post for its scheduledFor and fires the post.scheduled webhook. When that time has already passed, the post publishes within a couple of minutes. reject returns the post to draft. Returns 409 when the post is not pending_approval.
post/v1/posts/{postId}/review
Request
- Base URL: https://zernio.com/api
- URL: https://zernio.com/api/v1/posts/{postId}/review
- Auth: HTTP bearer
Path parameters
postIdstring required
Request body
Response
The reviewed post
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
- info
endpoint added
- info