Skip to content

Modify a ShopCategory

Request

  • To update a ShopCategory information, will keep its original ID
  • Please ensure that each parameter is the value you want to update.

Rate limit: 10 QPS by appId dimension.

Bodyapplication/jsonrequired
shopIdinteger, (int64)required

store id in KeeTa

Example:25381
shopCategoryobject(ShopCategory)required
curl -i -X POST \
  https://open.mykeeta.com/api/open/product/shopcategory/update \
  -H 'Content-Type: application/json' \
  -d '{
    "shopId": 25381,
    "shopCategory": {
      "id": 12345,
      "name": "Happy Meal",
      "sourceLanguageType": "en",
      "nameTranslation": "開心樂園餐",
      "targetLanguageType": "zh-HK",
      "nameTranslateType": 1,
      "type": 0,
      "description": "Happy Meal description",
      "descSourceLanguageType": "en",
      "descriptionTranslation": "開心樂園餐描述",
      "descTargetLanguageType": "zh-HK",
      "descriptionTranslateType": 1,
      "openItemCode": "SHOP_CATEGORY#10001",
      "availableTime": {
        "code": 0,
        "values": [
          "string"
        ],
        "available": [
          {
            "startTimestamp": 1735660800000,
            "endTimestamp": 1736956799000
          }
        ]
      }
    }
  }'

Responses

Successful update.

Bodyapplication/json
codeintegerrequired

A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.

Enum ValueDescription
0

The request was executed successfully.

Non-zero value

The request execution failed. Specific error details can be viewed in the message field.

Example:0
messagestringrequired

Text description corresponding to the status code, explaining the operation result or error cause to users.

Example:"Success"
dataobject(ShopCategory)
Response
{ "code": 0, "message": "Success", "data": { "id": 12345, "name": "Happy Meal", "sourceLanguageType": "en", "nameTranslation": "開心樂園餐", "targetLanguageType": "zh-HK", "nameTranslateType": 1, "type": 0, "description": "Happy Meal description", "descSourceLanguageType": "en", "descriptionTranslation": "開心樂園餐描述", "descTargetLanguageType": "zh-HK", "descriptionTranslateType": 1, "openItemCode": "SHOP_CATEGORY#10001", "availableTime": { … } } }