Publish an article
  • 02 Feb 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Publish an article

  • Dark
    Light

POST /articles/{id}/{langcode}/publish 

Publishes an article in respective language with an ID


Header

ParameterTypeDescription
api_tokenstringYou can get the REST API from Settings > Advanced > API tokens.


Route Parameters

ParameterRequiredTypeDescription
idYesstringThe ID of the article
langCodeYesstringLanguage code for multilingual (Default value is en)


Body Parameters

ParameterRequiredTypeDescription
version_numberYesnumberThe version number to be published. Minimum Value 1
user_idYesstringThe ID of the user that will be marked as an author of this publish


Sample Request

{
    "version_number": 1,
    "user_id": "5ae331f74e60146b233558c6"
}

Response

If 'success' returns true status, then it indicates that the record has been published.

{
  "extension_data": null,
  "context": null,
  "success": true,
  "errors": [],
  "warnings": [],
  "information": []
}

Was this article helpful?

What's Next