Actions19
Post → Cancel
AI-generatedSummary
Cancels a draft or scheduled Post Mate post by sending a DELETE request for the given post ID.
Inputs
- postId (required) — ID of the post to cancel. It is inserted into the request path as /api/v1/posts/{postId}.
Output shape
One output item per input item. Its json is the parsed body returned by the Post Mate API for the DELETE call. If the API returns an array, each element becomes its own item.
The exact response fields are not defined in the node. The node doesn't check the post's status itself, so the API decides which posts can be cancelled. With Continue On Fail enabled, a failed item returns {error: message} instead of stopping the workflow. Requires the Post Mate API credential (Bearer API key, optional base URL).
Examples
Example 1: Cancel a scheduled post when an upstream approval is rejected.
Resource: Post, Operation: Cancel, Post ID: {{ $json.postId }}
Example 2: Clean up a draft post that was created earlier in the workflow by the Schedule / Create operation.
Resource: Post, Operation: Cancel, Post ID: {{ $('Post Mate').item.json.id }}