# Batch Update ChoiceGroupSku Status

This endpoint allows users to efficiently modify the status of ChoicegroupSkus using their OpenItemCode.
**Rate Limiting**
App-level throttling: **QPS ≤ 10**
**Notes**
- When developers call this endpoint to update the status of multiple options on the Keeta platform, it's essential to understand that the API processes each option independently. This can result in partial success, where some options are successfully updated while others encounter errors.

Endpoint: POST /product/choicegroupskustatus/batchupdatebycode
Version: v.1.0.0

## Request fields (application/json):

  - `shopId` (integer, required)
    Unique identifier of the Keeta store.
    Example: 12345

  - `choiceGroupSkuCodePackList` (array, required)
    This field includes ChoicegroupSkus that required status updates.

  - `choiceGroupSkuCodePackList.choiceGroupCode` (string, required)
    The OpenItemCode identifier for the ChoiceGroup, provided by the developer.
    Example: SET-77017010009-3

  - `choiceGroupSkuCodePackList.choiceGroupSkuCodes` (array, required)
    List of valid option OpenItemCodes that belong to the specified ChoiceGroup. All codes must exist within the given choiceGroupCode's option set.

  - `status` (integer, required)
    This field controls the visibility and availability of a ChoiceGroupSku in the merchant storefront.
Status = 0, this setting will immediately deactivate the specified ChoiceGroupSku.
Status = 1, this setting activates the ChoiceGroupSku for public visibility and ordering.
    Example: 1

## Response 200:

  - `200` (unknown)
    Request executed successfully

## Response 200 fields (application/json):

  - `code` (integer, required)
    A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
    Example: 0

  - `message` (string, required)
    Text description corresponding to the status code, explaining the operation result or error cause to users.
    Example: Success

  - `data` (integer)
    The quality of OpenItemCodes of choicegroupsku whose statuses were successfully changed.
    Example: 239

  - `errorList` (array)
    A list contains the OpenItemCode for each option whose status update failed.

  - `errorList.id` (integer)
    Unique identifier for the Choicegroup (Standard Product Unit), generated by Keeta's system
    Example: 45676543

  - `errorList.name` (string)
    Display name of the Choicegroup

  - `errorList.openItemCode` (string)
    Developer-provided external identifier that maintains a one-to-one mapping with Keeta's internal Choicegroup ID. Refer to the "Menu Development Guide" for implementation details.
    Example: SET-11001000005-3

  - `errorList.code` (integer)
    A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully. **A code value of 0** indicates that **the request was executed successfully**. **Any non-zero code value** indicates that **request execution failed**. **Specific error details** can be viewed in the *message* field.
    Example: 107000104

  - `errorList.message` (string)
    Text description corresponding to the status code, explaining the operation result or error cause to users.
    Example: Data does not exist

