Facebook Pixel
ApiLinkedin posts

Cancel a scheduled post

Cancels a post that has not published yet and removes everything queued alongside it — the publish job, any reposts, and a reserved boost (which frees its quota slot). An already published post cannot be deleted: the request returns 409, because removing the record would not unpublish the post from LinkedIn.

DELETE/posts/schedule/{id}
Authentication requiredPosts

Code Examples

curl -X DELETE 'https://api.connectsafely.ai/linkedin/posts/schedule/<id>' \
-H 'Authorization: Bearer <your_api_key>'

Cancels a post that has not published yet and removes everything queued alongside it — the publish job, any reposts, and a reserved boost (which frees its quota slot).

An already published post cannot be deleted: the request returns 409, because removing the record would not unpublish the post from LinkedIn.

Parameters

NameInRequiredTypeDescription
idpathYesstringScheduled post id, as returned by schedule-post or list-scheduled-posts.

Request Body

No request body.

Responses

StatusDescription
200Cancelled
401Unauthorized
404Not found, or not visible to you
409Already published — cannot be cancelled
500Server error

200 Response Parameters

NameTypeDescription
successboolean
idstring

200 Example

{
  "success": true,
  "id": "12345"
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

{
  "error": "example_value"
}

404 Response Parameters

NameTypeDescription
errorstring

404 Example

{
  "error": "example_value"
}

409 Response Parameters

NameTypeDescription
errorstring

409 Example

{
  "error": "example_value"
}

500 Response Parameters

NameTypeDescription
errorstring

500 Example

{
  "error": "example_value"
}

On this page