Scheduling
Cancel Scheduled
Cancel a scheduled post and move it back to draft.
Endpoint
DELETE https://api.postpeer.dev/v1/posts/scheduled/{postId}Path Parameters
| Parameter | Type | Description |
|---|---|---|
postId | string | The scheduled post ID to cancel |
Example
curl -X DELETE "https://api.postpeer.dev/v1/posts/scheduled/post_xyz789" \
-H "x-access-key: YOUR_API_KEY"Response
{
"success": true,
"message": "Post cancelled and moved to draft."
}Status Codes
| Code | Meaning |
|---|---|
200 | Successfully cancelled |
404 | Post not found |
409 | Post already published |