Unassign products from the category
Last updated
Was this helpful?
Last updated
Was this helpful?
POST
https://app.ecwid.com/api/v3/{storeId}/categories/{categoryId}/unassignProducts
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 unassigned to the category. Note 1: Unassigned products are not deleted from the store. Note 2: Unassigned product without any categories are automatically assigned to the top-level category.
deleteCount
number
Defines if the request was successful.
One of:
1
if any products were unassigned,
0
if no products were unassigned.