Gets list of categories within project version

Prev Next
Get
/v2/ProjectVersions/{projectVersionId}/categories
Security
API Key
Header parameter nameapi_token

Enter REST API key. To generate a key, go to Settings → Knowledge base portal → API tokens

Path parameters
projectVersionId
stringRequired

The ID of the project version

Query parameters
excludeArticles
boolean

True - Articles will be excluded; False - Articles will be included

langCode
string

Get article in the project version that corresponds to the given language code. If the language code is empty, the default language of the project version will be taken into account

includeCategoryDescription
boolean

True - Include category description; False - Exclude category description

Defaultfalse
Responses
200

Success

Example for 200 response

200 response in get list of categories within project version

{
  "data": [
    {
      "id": "f587e278-4205-4a07-a6b7-28dc9caf6f48",
      "name": "Getting started",
      "description": "This is the description of the getting started category.",
      "project_version_id": "ad76e483-6ef7-4e43-b53f-4fe5e52sefw",
      "order": 1,
      "parent_category_id": null,
      "hidden": false,
      "articles": [
        {
          "id": "c31b0a18-5416-4cef-b165-83d9b52ada43",
          "title": "Why did we build Document360?",
          "public_version": 1,
          "latest_version": 1,
          "language_code": null,
          "hidden": false,
          "status": 0,
          "order": 1,
          "slug": "why-did-we-build-document360",
          "content_type": null,
          "translation_option": 0,
          "is_shared_article": false,
          "modified_at": null
        }
      ],
      "child_categories": [],
      "icon": null,
      "slug": "getting-started",
      "language_code": null,
      "category_type": 0,
      "created_at": "2024-06-13T14:30:00Z",
      "modified_at": "2024-06-13T14:30:00Z",
      "status": null,
      "content_type": null
    }
  ],
  "extension_data": null,
  "success": true,
  "errors": [],
  "warnings": [],
  "information": []
}
Expand All
object
data
Array of object (CategoryDataCustomer) | null
object
id
string | null

The ID of the category

name
string | null

Name of the category

description
string | null

Description of the category

project_version_id
string | null

The ID of the project version where this category is located

order
integer (int32)

The position the category inside the parent category

parent_category_id
string | null

The ID of the parent category ( null if top-level )

hidden
boolean

Indicates if the category is visible on the site ( If "false," all the child categories and articles will be hidden as well )

articles
Array of object (ArticleSimpleDataCustomer) | null

The list of articles attached to this category

object
id
string | null

The ID of the article

title
string | null

The article title

public_version
integer (int32)

The article version number(revision) that is currently published

latest_version
integer (int32)

The latest version number of this article

language_code
string | null Deprecated

The default language code

hidden
boolean

Indicates if the article is visible on the site

status
integer (int32)

The status of the article: 0 - Draft, 3 - Published

Valid values[ 0, 3 ]
order
integer (int32)

The position of the article inside the parent category

slug
string | null

The slug of the article

content_type
integer (int32) | null

The content type of the article: Markdown = 0, Wysiwyg = 1, Block = 2

Valid values[ 0, 1, 2 ]
translation_option
integer (int32)

The Translation status of the article

Valid values[ 0, 1, 2, 3 ]
is_shared_article
boolean

True indicates that the article is shared

modified_at
string (date-time) | null

Article modified date time

child_categories
Array of object (CategoryDataCustomer) | null

The list of categories attached to this category

object Recursive
icon
string | null

Unicode representation of the icon or image URL

slug
string | null

The slug of the category

language_code
string | null

Language code of the category

category_type
integer (int32)

0 - Folder, 1 - Page, 2 - Index

Valid values[ 0, 1, 2 ]
created_at
string (date-time) | null

Category created date time

modified_at
string (date-time) | null

Category modified date time

status
integer (int32) | null

The status of the page type category: 0 - Draft, 3 - Published

Valid values[ 0, 3 ]
content_type
integer (int32) | null

The content type of the page type category: Markdown = 0, Wysiwyg = 1, Block = 2

Valid values[ 0, 1, 2 ]
extension_data
object | null

Extention data for customer API response

success
boolean

Status indication for customer API response

errors
Array of object (BaseError) | null

Errors in the customer API response

object
extension_data
object | null

Thids is the Extention data object

stack_trace
string | null

Stack trace for error response message

description
string | null

Description for error cause

error_code
string | null

Error code for Api response

custom_data
object | null
property*
warnings
Array of object (BaseWarning) | null

Warnings in the customer API response

object
extension_data
object | null

Extention Data for customer Api warning

description
string | null

Warning description

warning_code
string | null

warning code for customer Api base response

information
Array of object (BaseInformation) | null

Information passed by the customer API response

object
extension_data
object | null

Extention data for customer Api response information

description
string | null

status description for customer Api response information

400

Bad Request

Example for 400 response

400 response in get list of categories within project version

{
  "extension_data": null,
  "success": true,
  "errors": [],
  "warnings": [],
  "information": []
}
Expand All
object
extension_data
object | null

Extention data for customer API response

success
boolean

Status indication for customer API response

errors
Array of object (BaseError) | null

Errors in the customer API response

object
extension_data
object | null

Thids is the Extention data object

stack_trace
string | null

Stack trace for error response message

description
string | null

Description for error cause

error_code
string | null

Error code for Api response

custom_data
object | null
property*
warnings
Array of object (BaseWarning) | null

Warnings in the customer API response

object
extension_data
object | null

Extention Data for customer Api warning

description
string | null

Warning description

warning_code
string | null

warning code for customer Api base response

information
Array of object (BaseInformation) | null

Information passed by the customer API response

object
extension_data
object | null

Extention data for customer Api response information

description
string | null

status description for customer Api response information