Skip to Content
PropertyPixel Docs
API referenceSocial posting

Cancel a social post

POST
/social/posts/{id}/cancel

Cancel a scheduled post so it never publishes to any of its accounts. Only posts with status scheduled can be cancelled; once it has started sending this returns conflict. Workspace owners can cancel any post, editors only their own. Confirm with the user first.

Requires a connection with edit access.

Authorization

headerAuthorizationBearer <pp_live_…>

An API key from Settings → Developers (pp_live_…), or an OAuth access token.

Path Parameters

id*string

The post's id, from create_social_post or list_social_posts.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Header Parameters

Idempotency-Key?string

A unique key (for example a UUID) that makes retries safe. A retry with the same key and body returns the stored response; the same key with a different body returns 422. Keys last 24 hours.

Lengthlength <= 255

Response Body

Cancel a social post

application/json
  1. response
object*string
id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
status*SocialPostStatus

scheduled (waiting for its time; can be cancelled), publishing, published, partially_published (some accounts failed), failed or cancelled.

Value in"scheduled""publishing""published""partially_published""failed""cancelled"
media_kind*string
Value in"video""photos"
caption*string
scheduled_for*|

When it is due to post; null when it was posted straight away.

timezone*string

IANA time zone the post was scheduled in.

sent_at*|null
cancelled_reason*|null
source*string

Where the post was created: web (the PropertyPixel app), api or mcp.

Value in"web""api""mcp"
media*array<>
targets*array<>

One per account. Each publishes, fails or is retried on its own.

created_at*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
warnings?array<string>

Only on create_social_post's result: things the user should know that didn't stop the post, e.g. a TikTok account whose settings couldn't be checked now and will be checked when the post is sent. Show them to the user.

Example Request
curl -X POST 'https://api.propertypixel.app/v1/social/posts/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'
Example Response
{  "object": "social_post",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "status": "scheduled",  "media_kind": "video",  "caption": "string",  "scheduled_for": "2019-08-24T14:15:22Z",  "timezone": "string",  "sent_at": "2019-08-24T14:15:22Z",  "cancelled_reason": "user",  "source": "web",  "media": [    {      "position": 0,      "source": {        "kind": "version",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "width": 0,      "height": 0,      "duration_ms": 0,      "fit": "fit",      "thumbnail_url": "string"    }  ],  "targets": [    {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "platform": "instagram",      "username": "string",      "post_type": "feed",      "caption": "string",      "settings": {        "property1": null,        "property2": null      },      "status": "pending",      "permalink": "string",      "error": {        "code": "string",        "message": "string",        "retryable": true      },      "published_at": "2019-08-24T14:15:22Z"    }  ],  "created_at": "2019-08-24T14:15:22Z",  "warnings": [    "string"  ]}