sdkDeterministic
Unschedule post
pipeline.unschedulePost
Cancel scheduled publication and move the LinkedIn post back to draft. Cannot cancel publication that has already started or finished. Does not delete the draft or publish anything.
Parameters
workspaceId
string
No description.
postIdrequired
string
The scheduled content post ID.
Example
TypeScripttypescript
await pipeline.unschedulePost({"postId": "00000000-0000-4000-8000-000000000000"})
Response
Success response schemajson schema
{"type": "object","properties": {"success": {"type": "boolean"},"data": {"type": "object","properties": {"id": {"type": "string"},"status": {"type": "string","enum": ["draft"]},"scheduledAt": {"type": ["string","null"]}},"required": ["id","status"]},"message": {"type": "string"}},"required": ["success","data","message"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.