Assign products to the category
POST
https://app.ecwid.com/api/v3/{storeId}/categories/{categoryId}/assignProducts
Required access scopes
Your app must have the following access scopes to make this request: update_catalog
Path params
All path params are required.
storeId
number
Ecwid store ID.
categoryId
number
Internal category ID.
Headers
The Authorization header is required.
Authorization
Bearer secret_ab***cd
Access token of the application.
Request JSON
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.
Response JSON
A JSON object with the following fields:
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.
Last updated
Was this helpful?