---
title: "Move scheduled post to drafts"
method: POST
path: "/unschedule_post"
tags: ["Write"]
---

# Move scheduled post to drafts

`POST /unschedule_post`

## Request

- Base URL: `https://pdb.postpen.ai/functions/v1/agent-api`
- URL: `https://pdb.postpen.ai/functions/v1/agent-api/unschedule_post`
- Auth: HTTP bearer

Moves a scheduled post that has not been sent back to Drafts and clears its schedule time, like "Move to draft" on the PostPen calendar. It does not delete the post and does not call LinkedIn. Refused unless confirm is true. Published posts cannot be unscheduled.

## Request body

- object
  - `id` string, required: Id of the scheduled post, from list_posts status scheduled.
  - `confirm` boolean, required: Must be true. Clears the schedule and leaves a draft.

## Response `200`

Success. JSON object; never contains LinkedIn tokens.

- object

## Other responses

- `400`: Invalid input, or a confirm: true guard was not met.
- `401`: Missing or invalid API key.
- `402`: Plan limit reached (for example the Free plan's monthly post cap).
- `403`: Destination not allowed for this account or plan.

---

[API](https://skmtc.dev/postpen/apis/postpen-agent-api.md) · [All operations](https://skmtc.dev/postpen/apis/postpen-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postpen/apis/postpen-agent-api/revisions/2b07a2e1bfe7?raw)
