Articles

Unpublish Article

Revert a Published article back to Draft, identified by its entity id. The announcement tweet the original publish posted is left in place; use Delete Article to remove it too. X server-validates this transition and returns a 422 (invalid_lifecycle) if the article is not currently Published. Requires a registered session. Billed at $0.0016 per call. Cost: $0.0016 per call.

post/article/unpublish

Request

  • Base URL: https://api.twitterapis.com/twitter
  • URL: https://api.twitterapis.com/twitter/article/unpublish
  • Auth: HTTP bearer

Request body

idstring required

The article's base64 entity id, returned by article/create or article/list (the id field, not rest_id).

Example request

{
  "id": "QXJ0aWNsZUVudGl0eToyMDg2NjUwMjI4OTUwNjgzNjQ4"
}

Response

Revert a published article back to Draft. The announcement tweet is left in place.

okboolean

True when the article was reverted to Draft.

articleobject

The reverted article, full shape: id, rest_id, title, preview_text, lifecycle (back to Draft), content_state, cover_media, media_entities, author, created_at_secs, modified_at_secs, first_published_at_secs, visibility_setting, tweet_id, public_url.

Changes

No recorded changes to this operation across all 1 revision of this API.