v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Categories

Bulk Assign

To add or remove bulk products to categories<br>從指定分類批量添加或移除商品

post/categories/bulk_assign

Request body

product_idsstring[] required

Array of product id<br>商品id

category_idsstring[] required

Array of category id<br>商品分類id

is_bulk_removeboolean

bulk remove or add, default false<br>批量添加還是移除,默認為false

unset_other_categoriesboolean

if products in other categories, unset other categories, default false<br> 如果商品在其他分類,是否從其他分類刪除,默認為false

Example request

{
  "product_ids": [
    "6163f576ff530500129f908e"
  ],
  "category_ids": [
    "5f69a8de60ae4900113fe72e"
  ]
}

Response

OK