Assign products to the category
Last updated
Was this helpful?
Last updated
Was this helpful?
POST
https://app.ecwid.com/api/v3/{storeId}/categories/{categoryId}/assignProducts
Your app must have the following access scopes to make this request: read_catalog
, update_catalog
All path params are required.
storeId
number
Ecwid store ID.
categoryId
number
Internal category ID.
The Authorization header is required.
Authorization
Bearer secret_ab***cd
Access token of the application.
A JSON object with the following fields:
productIds
array of numbers
List of products that will be assigned to the category. Newly assigned products are put at the end of the product list in the category.
updateCount
number
The number of updated items that defines if the request was successful.
One of:
1
if the item was updated,
0
if the item was not updated.