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

Get article settings

  • Dark
    Light

GET/articles/{id}/{langcode}/settings 

Gets settings for the article 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": {
        "slug": "API Documentation",
        "seo_title": "",
        "description": "",
        "allow_comments": false,
        "show_table_of_contents": false,
        "featured_image_url": null,
        "tags": [
            "API",
            "Demo"
        ],
        "status_indicator": 0,
        "status_indicator_expiry_date": null,
        "exclude_from_search": false,
        "related_articles": [
            {
                "id": "bb1a1ae8-0cda-4886-9f73-e98f3d8cc737",
                "title": "Welcome !",
                "hidden": false,
                "slug": "welcome"
            }
        ]
    },
    "extension_data": null,
    "context": null,
    "success": true,
    "errors": [],
    "warnings": [],
    "information": []
}


Response Sample

ParameterTypeDescription
slugstringThe slug of the article
seo_titlestringThe SEO title of the article
descriptionstringThe description of the article
allow_commentsbooleanDisable / Enable internal commenting on the article
show_table_of_contentsbooleanDisable / Enable article table of the contents on the knowledge base
featured_image_urlstringThe URL of the image that will be used as a featured image
tagsstring[]Custom article tags
status_indicatorenumeratedUser site article status 0 - none, 1 - new, 2 - updated
status_indicator_expiry_dateDateTimeThe date-time when the public article status is removed
exclude_from_searchbooleanIf true, the article with not appear in search results on the knowledge base
related_articlesobject[]The list of articles related to the current article

Response > related_articles

ParameterTypeDescription
idstringArticle ID
titlestringArticle title
hiddenbooleanArticle visibility status
slugstringArticle slug

Was this article helpful?