post https://app.ecwid.com/api/v3//categories//unassignProducts
Remove products from an existing category in an Ecwid store referring to its ID.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | oAuth token with mandatory Bearer before it. Example: Bearer e***s0 , where e***s0 should be replaced with your oAuth token. |
Request
A JSON object of type 'Category' with the following fields:
Category
Field | Type | Description |
---|---|---|
productIds | Array<number> | IDs of the products to delete from the category. Max 2000 IDs per request. |
Response
A JSON object of type 'UpdateStatus' with the following fields:
UpdateStatus
Field | Type | Description |
---|---|---|
deleteCount | number | The number of updated categories (1 or 0 depending on whether the update was successful) |
Errors
In case of error, Ecwid responds with an error HTTP status code and, optionally, JSON-formatted body containing error description
HTTP codes
HTTP Status | Meaning |
---|---|
400 | Malformed request parameters |
404 | The category or one of the assigned products is not found |
409 | There was a conflict modifying the store (updating a category while it's being edited elsewhere). Retry later. |
415 | Unsupported content-type: expected application/json or text/json |
449 | Store catalog cannot be modified at the moment because import is in progress. Retry later. |
500 | Server error |