Drafts

Drafts and scheduled posts.

Before you start: an API key and a connected LinkedIn account, see the Quickstart.

Commands

CommandDescription
curviate draft listList Drafts, newest first. With --status published it lists publish records instead (post id, account, time; never Drafts).
curviate draft getGet one Draft, with a fresh signed link (valid 1 hour) for each attachment.
curviate draft createStore a Draft. Every part is optional. With --schedule-at (and an account and text) Curviate publishes it at that time. Up to 50 Drafts and 2 GiB of media per account, and per no-account. A retry creates a second Draft.
curviate draft updateChange a Draft: only the parts you pass change. --attach appends files; --schedule-at schedules or reschedules, --unschedule cancels. Any update to a failed Draft clears its failure. A Draft being published answers DRAFT_PUBLISHING: read it again in a few seconds.
curviate draft deleteDelete a Draft and its stored media.
curviate draft publishPublish a Draft now, under the same rules and safety limits as post create. Success deletes the Draft and prints the post id; a known failure leaves the Draft unchanged. If the error says the outcome is unknown, the post may be live: check the account's posts before retrying.

Exit codes: the exit code table.