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:publishoperationId
changePostStatusMoves the post between draft and scheduled status.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| id | útvonal | string | yes | The post ID. |
| status | törzs | "draft" | "schedule" | yes | The 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
- Authentication: API key and scopes.
- Errors and limits: error responses and rate limits.
- All endpoints: full list.
Is something missing from this page? Email [email protected] or use the form on the Help page.