Skip to main content
DocsPlatformsAPI ReferenceAI & Integrations
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

ParameterTypeDescription
postIdstringThe 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"
import PostPeer from '@postpeer/node';

const client = new PostPeer();
await client.posts.scheduled.cancel({
	path: { postId: 'post_xyz789' },
});
from postpeer import PostPeer

with PostPeer() as client:
    client.posts.scheduled.cancel(post_id="post_xyz789")

Response

{
	"success": true,
	"message": "Post cancelled and moved to draft."
}

Status Codes

CodeMeaning
200Successfully cancelled
404Post not found
409Post already published

On this page