Replace a post
The body is the whole post, not a partial patch: targets you leave out are removed. A post that is going out right now, or is waiting for approval, cannot be saved as anything but a draft.
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
postId*stringapplication/json- body
title?|Internal label, never published.
length <= 120caption?stringUsed by every target that has no caption of its own.
length <= 63206baseCaption?stringDeprecatedOld name of caption, still accepted.
length <= 63206mediaIds?array<string>Media ids from GET /v1/media, POST /v1/media/uploads, or POST /v1/media/imports. Used by targets with an empty mediaIds.
items <= 35baseMediaIds?array<string>DeprecatedOld name of mediaIds, still accepted.
items <= 35targets*array<|>One entry per destination channel. A post always has at least one.
1 <= itemsscheduledAt?|Required when mode is schedule. Interpreted as an absolute instant, so send an offset.
date-timemode?stringdraft saves without publishing. schedule needs scheduledAt. queue takes the next free slot from the channel queue. now publishes immediately.
"draft""draft""schedule""now""queue"The post was replaced.
application/json- response
data?curl -X PATCH 'https://api.eksis.io/v1/posts/string' \ -H 'Authorization: Bearer eksis_sk_...' \ -H 'Content-Type: application/json' \ -d '{ "targets": [ {} ]}'{ "data": { "id": "string", "status": "string", "scheduledAt": "2019-08-24T14:15:22Z", "warnings": [ { "channelId": "string", "platform": "string", "code": "string", "field": "string", "message": "string", "hint": "string" } ] }}