PubNio calls X’s POST /2/articles/draft (articleCreateDraft) to save an X Article as a draft.
How PubNio calls it
- Publishing:
POST /api/v1/posts(unless it saves a draft),POST /api/v1/posts/{postId}/publish, orPOST /api/v1/posts/{postId}/targets/{targetId}/retrystarts the delivery. - PubNio sends the article
titleand acontent_statewith one block per plain-text line of the article. The delivery ends as a provider draft, not a published post. - A response without a numeric draft ID is an invalid response, not a success.
Scopes
- The pinned spec names no scope. See X scopes and permissions.
- Before a delivery makes this call, PubNio checks that the account granted
tweet.write.
Errors
PubNio has no X error code pages yet. Provider error codes covers the providers that have them.
Spec and changes
articleCreateDraft in the pinned spec, revision 2.175.
Checked weekly; no change to POST /2/articles/draft recorded since this revision. Change tracker.
Limits
- An article delivery with media, a thread, a poll, reply settings, tagged users, or a place is refused before the call. PubNio does not publish the article; the person does that in X.