Call it
curl https://api.peume.com/v1/call/update-post \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"postId": "your postId",
"publishNow": false
}
}'const res = await fetch("https://api.peume.com/v1/call/update-post", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"postId": "your postId",
"publishNow": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-post",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"postId": "your postId",
"publishNow": False
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: update-post.
Parameters
postIdRequiredstringtitlestringStored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted).
contentstringmediaItemsarrayplatformsarrayTarget platforms and accounts for this post. Each item must include platform and accountId.
scheduledForstringpublishNowbooleanExample: false
isDraftbooleanWhen omitted, the post keeps its current draft status. Send `false` to promote a draft to scheduled (combined with `scheduledFor`, `publishNow`, or a queue).
requiresApprovalbooleanSend true on a draft to submit it for approval: it becomes pending_approval and publishes only after POST /v1/posts/{postId}/review approves it, and fires the post.pending_approval webhook. Cannot be combined with isDraft, publishNow, queuedFromProfile or queueId. Returns 409 when the post is not a draft.
timezonestringvisibilitystringpublic · private · unlisted
tagsarrayhashtagsarrayStored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead.
mentionsarraycrosspostingEnabledbooleanmetadataobjectexternalIdstringYour own identifier for this post (see `externalId` on create). Send `null` to clear it. Also accepted on published posts.
queuedFromProfilestringProfile ID to schedule via queue.
queueIdstringSpecific queue ID to use when scheduling via queue.
tiktokSettingsobjecttiktokSettings
facebookSettingsobjectfacebookSettings
recyclingobjectrecycling
