Get article versions
  • 02 Feb 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Get article versions

  • Dark
    Light

GET /articles/{id}/{langcode}/versions 

Gets all article versions in the respective language


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)


Response

{
    "data": [
        {
            "version_number": 1,
            "created_by": "Daniel Szweda",
            "created_at": "2018-10-19T09:39:16.844Z",
            "modified_at": "2018-10-19T09:39:18.755Z",
            "base_version": 0,
            "status": 0,
            "profile_url": "https://s.gravatar.com/avatar/1b7c898ca4afb6c3ca5b7ccf89adc5a9.png"
        },
        {
            "version_number": 2,
            "created_by": "Daniel Szweda",
            "created_at": "2018-10-25T09:43:09.273Z",
            "modified_at": "2018-10-31T14:47:27.577Z",
            "base_version": 1,
            "status": 0,
            "profile_url": "https://s.gravatar.com/avatar/1b7c898ca4afb6c3ca5b7ccf89adc5a9.png"
        },
        {
            "version_number": 3,
            "created_by": "Daniel Szweda",
            "created_at": "2018-11-05T12:26:38.66Z",
            "modified_at": "2018-11-12T15:25:22.104Z",
            "base_version": 2,
            "status": 0,
            "profile_url": "https://s.gravatar.com/avatar/1b7c898ca4afb6c3ca5b7ccf89adc5a9.png"
        }
    ],
    "extension_data": null,
    "context": null,
    "success": true,
    "errors": [],
    "warnings": [],
    "information": []
}


Response Data

ParameterTypeDescription
version_numbernumberThe version number of the article
created_bystringAuthor name
created_atDateTimeThe date the article version was created
modified_atDateTimeThe last time the article version was modified
base_versionnumberThe version number from which this article version is derived
statusenumeratedThe status of the article: 0 - Draft, 3 - Published
profile_urlstringAuthor profile image

Was this article helpful?