Posts

Change Post Status

PUThttps://tryferra.co/api/public/v1/posts/{id}/status

Moves a post between draft and schedule state.

  • schedule → sets the post state to QUEUE and (re)starts the publishing workflow so it will be published at its stored date.
  • draft → sets the post state to DRAFT and terminates any currently running publishing workflow for the post, so it will not be published.

The post keeps its stored date; only the state (and the workflow) changes.

Authorization

Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.

Parameters

idstringrequired

path · Post ID

Body

status"draft" | "schedule"required

New status for the post

Request

curl -X PUT 'https://tryferra.co/api/public/v1/posts/{id}/status' \
  -H 'Authorization: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
  "status": "schedule"
}'

Responses

200Post status updated successfully
{
  "id": "post-123",
  "state": "QUEUE"
}
400Invalid status or post not found

Parts of these docs are adapted from open-source documentation under the MIT License (© 2023 Mintlify).