Skip to main content

Reassign Category to Products

PUT 

/api/categories/reassign-to-products

Bulk reassign all products from one leaf category to another. Products already in the new category are detached from the old one.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Request body fields:

  • old_category_id (required) — must be an existing leaf category
  • new_category_id (required) — must be an existing leaf category; different from old_category_id

Requires permission: categories.update

Request

Responses

OK

Response Headers
    Content-Type