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

Reject a post

POST
/v1/posts/{postId}/reject

Sends a submitted post back to its author as a draft, with a note saying what to change. Needs a key with the editor role or higher.

Authorization

headerAuthorizationBearer <token>

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

Path Parameters

postId*string

Request Body

application/json
  1. body
note*string

Shown to the author.

Length1 <= length <= 2000

Response Body

The post is a draft again.

application/json
  1. response
data?
curl -X POST 'https://api.eksis.io/v1/posts/string/reject' \  -H 'Authorization: Bearer eksis_sk_...' \  -H 'Content-Type: application/json' \  -d '{  "note": "string"}'
{  "data": {    "id": "string",    "status": "draft",    "scheduledAt": "2019-08-24T14:15:22Z"  }}