The API reference moved here from eksis.io/developers.
Posts

Update a post

PATCH
/v1/posts/{postId}

Send only the fields to change: everything left out keeps its saved value, and a scheduled post keeps its time unless you send mode or scheduledAt. A full body still works. targets, when sent, is the full list of channels: channels left out of it are removed. A post that is going out right now, or is waiting for approval, cannot be saved as anything but a draft.

Authorization

headerAuthorizationBearer <token>

Send your key as Authorization: Bearer eksis_sk_....

Path Parameters

postId*string

Request Body

application/json
  1. body
title?|

Internal label, never published.

Lengthlength <= 120
caption?string

New base caption. Leave it out to keep the current one. Sending it also replaces captions individual channels had of their own, and data.warnings says so.

Lengthlength <= 63206
baseCaption?stringDeprecated

Old name of caption, still accepted.

Lengthlength <= 63206
mediaIds?array<string>

Media ids from GET /v1/media, POST /v1/media/uploads, or POST /v1/media/imports. Leave it out to keep the current media. Sending it also replaces media individual channels had of their own.

Itemsitems <= 35
baseMediaIds?array<string>Deprecated

Old name of mediaIds, still accepted.

Itemsitems <= 35
targets?array<|>

The full list of channels. Leave it out to keep the channels as they are. When you send it, channels missing from it are removed.

Items1 <= items
scheduledAt?|

Interpreted as an absolute instant, so send an offset. Sent without mode, the post is scheduled for this time.

Formatdate-time
mode?string

Leave it out to keep the timing: a scheduled post keeps its time (or moves to scheduledAt when you send one), and any other post is saved as a draft. draft unschedules. schedule needs scheduledAt. queue takes the next free slot from the channel queue. now publishes immediately.

Value in"draft""schedule""now""queue"

Response Body

The post was updated.

application/json
  1. response
data?
curl -X PATCH 'https://api.eksis.io/v1/posts/string' \  -H 'Authorization: Bearer eksis_sk_...' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "id": "string",    "status": "string",    "scheduledAt": "2019-08-24T14:15:22Z",    "warnings": [      {        "channelId": "string",        "platform": "string",        "code": "string",        "field": "string",        "message": "string",        "hint": "string"      }    ]  }}