Toda a documentação
DOCS api / endpoints

DELETE /posts/:id

Cancel a scheduled post and remove its delayed queue job.

Cancel Scheduled Post

Endpoint: DELETE /posts/:id

Cancels only scheduled posts.

Rules

  • User must belong to the post account.
  • Post status must be scheduled.
  • If a delayed BullMQ job exists (jobId == postId), it is removed.
  • Post status is updated to cancelled.

Responses

  • 200 { "success": true, "postId": "<id>" }
  • 400 when status is not scheduled
  • 403 when user is not member of account
  • 404 when post does not exist