v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Products

Batch Update (add/remove) current product labels

Add or Remove current product labels.

patch/products/labels

Request body

Example request

{
  "data": [
    {
      "product_ids": [
        "638f7271097c2800478761fc"
      ],
      "label": null
    },
    {
      "product_ids": [
        "638f7271097c2800478761fc"
      ],
      "label": {
        "name_translations": {
          "en": "English Label",
          "zh-hant": "中文促銷標籤"
        }
      }
    }
  ]
}

Response

OK

Example response

{
  "data": [
    {
      "success": true
    },
    {
      "success": false,
      "failed_product_ids": [
        "638f7271097c2800478761fc"
      ]
    }
  ]
}