Update the category description
  • 29 May 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Update the category description

  • Dark
    Light

Article Summary

Put
/v2/Categories/{categoryId}/{langCode}/updateDescription
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
categoryId
string Required

The ID of the category

langCode
string Required

Language code of the category

Query parameters
description
string

The description of the category

Responses
200

Success

Category description updated success

Kindly update the category Id and perform the task again.

{
  "extension_data": null,
  "success": true,
  "errors": [],
  "warnings": [],
  "information": []
}
Description not found

Kindly update the description and perform the task again.

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

Status indication for customer API response

errors
Array of object

Errors in the customer API response

object
extension_data
stack_trace
string

Stack trace for error response message

description
string

Description for error cause

error_code
string

Error code for Api resonse

custom_data
object
warnings
Array of object

Warning in the customer API response

object
extension_data
description
string

Warning description

warning_code
string

warning code for customer Api base response

information
Array of object

Information passed by the customer API response

object
extension_data
description
string

status description for customer Api response information

400

Bad Request

Category Id not found

Kindly update the Category Id and perform the task again.

{
  "extension_data": null,
  "success": false,
  "errors": [
    {
      "extension_data": null,
      "stack_trace": null,
      "description": "Category not found",
      "error_code": "",
      "custom_data": null
    }
  ],
  "warnings": [],
  "information": []
}
LangCode not found

Kindly update the Language code and perform the task again.

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

Status indication for customer API response

errors
Array of object

Errors in the customer API response

object
extension_data
stack_trace
string

Stack trace for error response message

description
string

Description for error cause

error_code
string

Error code for Api resonse

custom_data
object
warnings
Array of object

Warning in the customer API response

object
extension_data
description
string

Warning description

warning_code
string

warning code for customer Api base response

information
Array of object

Information passed by the customer API response

object
extension_data
description
string

status description for customer Api response information


Was this article helpful?