---
title: "Cancel a scheduled post"
method: POST
path: "/api/posts/{id}/cancel"
tags: ["Posts"]
---

# Cancel a scheduled post

`POST /api/posts/{id}/cancel`

## Request

- Base URL: `https://api.dunsocial.com`
- URL: `https://api.dunsocial.com/api/posts/{id}/cancel`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Headers

- `X-Workspace-Id` string, required

## Response `200`

Cancelled

- SuccessEnvelope
  - `success` true, required
  - `data` unknown

## Other responses

- `400`: Validation or business rule failed
- `401`: Missing or invalid bearer token
- `402`: Workspace is not on a paid plan
- `403`: Wrong workspace, missing scope, or role
- `404`: Resource not found

---

[API](https://skmtc.dev/dunsocial/apis/dunsocial-api.md) · [All operations](https://skmtc.dev/dunsocial/apis/dunsocial-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dunsocial/apis/dunsocial-api/revisions/3c586d59e76f?raw)
