Posts

Change post status: PUT /posts/:id/status

Poszt átmozgatása piszkozat és ütemezett állapot között.

Path

Method and path
PUThttps://api.posty.hu/public/v1/posts/:id/status
Authorization
posts:publish
operationId
changePostStatus

Moves the post between draft and scheduled status.

Parameters

NameLocationTypeRequiredDescription
idútvonalstringyesThe post ID.
statustörzs"draft" | "schedule"yesThe new status.

Request

curl -X PUT https://api.posty.hu/public/v1/posts/clp0s7t8u9v0w1x2/status \
  -H "Authorization: psty_a_kulcsod" \
  -H "Content-Type: application/json" \
  -d '{ "status": "schedule" }'

Important

  • This endpoint requires the posts:publish scope, not posts:draft. Moving a post out of draft is scheduling, and a key that can only draft cannot bypass that limit through this route.

Related

Is something missing from this page? Email [email protected] or use the form on the Help page.