Update post
Update an existing post. Only draft, scheduled, failed, and partial posts can be edited. Published, publishing, and cancelled posts cannot be modified.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
date-timeRoot-level TikTok settings applied to all TikTok platforms. Merged into each platform's platformSpecificData, with platform-specific settings taking precedence.
Root-level Facebook settings applied to all Facebook platforms. Merged into each platform's platformSpecificData, with platform-specific settings taking precedence.
Configure automatic post recycling (reposting at regular intervals). After the post is published, the system creates new scheduled copies at the specified interval until expiration conditions are met. Supports weekly or monthly intervals. Maximum 10 active recycling posts per account. YouTube and TikTok platforms are excluded from recycling. Content variations are recommended for Twitter and Pinterest to avoid duplicate flags.
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.posts.updatePost({ path: { postId: 'post_abc123', }, body: { content: 'Hello, world!', scheduledFor: '2026-01-15T10:00:00Z', tiktokSettings: { draft: false, privacyLevel: 'string', allowComment: false, }, },});console.log(data);{
"message": "Post updated successfully",
"post": {
"_id": "65f1c0a9e2b5af0012ab34cd",
"content": "Updated content for our launch post!",
"status": "scheduled",
"scheduledFor": "2024-11-02T14:00:00Z"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Update post metadata POST
Updates metadata of a published video on the specified platform without re-uploading. Currently only supported for YouTube. At least one updatable field is required. Two modes: 1. Post-based (video published through Zernio): pass the Zernio postId in the URL and platform in the body. 2. Direct video ID (video uploaded outside Zernio, e.g. directly to YouTube): use _ as the postId, and pass videoId + accountId + platform in the body. The accountId is the Zernio social account ID for the connected YouTube channel.
Delete post DELETE
Delete a draft or scheduled post from Zernio. Published posts cannot be deleted; use the Unpublish endpoint instead. Upload quota is automatically refunded.