Edit Category

Last Updated on : 2023-06-20 12:34:15download

Modify the information about a specified cateogry, including the language, operator, and other information.

API address

PUT: /v1.0/iot-03/app-contents/categories/{category_id}

Request parameter

Parameter name Type IN Required Description
category_id String uri true The ID of a specified category.

Description of body

Parameter name Type IN Required Description
lang_info List true The multilingual information about the categories.
publish Boolean true Indicates whether the category is released. Valid values:
  • true: yes.
  • false: no.
remark String false The description of the categories.
operator String true The ID of a specified operator.

Description of lang_info

Parameter name Type IN Required Description
lang String true The language.
value String true The multilingual value.

Return parameter

Parameter name Type Description
result Boolean The returned result.

Request example

PUT: /v1.0/iot-03/app-contents/categories/1
{ "langInfo": [ { "value": "推荐", "lang": "zh" }, { "value": "Recommended", "lang": "en" } ], "remark": "wqeqweqweqweqw", "operator": "12", "publish": true }

Return example

{ "result": true, "t": 1630329673631, "success": true }

Error code

For more information, see error code.