---
title: "Batch Update (add/remove) current product labels"
method: PATCH
path: "/products/labels"
tags: ["Products"]
---

# Batch Update (add/remove) current product labels

`PATCH /products/labels`

Add or Remove current product labels.

## Request body

- object
  - `data` object[] — One item means one operation on a batch of products. Maximum allows 5 operations per request.<br> 一個 item 代表對一批商品做相同操作，一次請求上限 5 個操作
    - `product_ids` string[] — Maximum allows 1000 product_id per action<br> 上限 1000 個商品 ID
    - `label` object — remove product's label if label is empty.<br> label 為空代表移除促銷標籤
      - `name_translations` object — Title translations<br>欲新增/更新的促銷標籤名稱
        - `en` string — Merchant defined English name<br>店家定義英文名稱
        - `zh-hant` string — Merchant defined Traditional Chinese name<br>店家定義繁體中文名稱
        - `zh-cn` string — Merchant defined Simplified Chinese name<br>店家定義簡體中文名稱
        - `vi` string — Merchant defined Vietnamese name<br>店家定義越南文名稱
        - `ms` string — Merchant defined Malaysian name<br>店家定義馬來西亞文名稱
        - `ja` string — Merchant defined Japanese name<br>店家定義日文名稱
        - `th` string — Merchant defined Thai name<br>店家定義泰文名稱
        - `id` string — Merchant defined Indian name<br>店家定義印度文名稱
        - `de` string — Merchant defined Deutsch name<br>店家定義德文名稱
        - `fr` string — Merchant defined France name<br>店家定義法文名稱

## Response `200`

OK

- object
  - `data` unknown[] — Display the success or failure of the operation in the order of the requests.<br> 依照請求順序，顯示該操作成功與否
    - unknown

## Other responses

- `500` — Server error

---

[API](https://skmtc.dev/shoplineapp/apis/shopline-open-api.md) · [All operations](https://skmtc.dev/shoplineapp/apis/shopline-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shoplineapp/shopline-open-api/revisions/1675ac12cde7/schema)
