Create Category

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

Create a specified category on the app. After release, you can view it on the app.

API address

POST: /v1.0/iot-03/app-contents/categories

Request parameter

Description of body

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

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

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

Return example

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

Error code

For more information, see error code.