Catalog Products — Mass Update Status
Bulk-flips status across a batch of catalog products. Each ID fires the same core event hooks the single-product update does (catalog.product.update.before / .after), so search reindex, cache flush etc. still trigger.
Endpoint
| Endpoint | Method |
|---|---|
/api/admin/catalog/products/mass-update-status | POST |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
indices | int[] | yes | Non-empty array of product IDs. |
value | integer | yes | 0 (disabled) or 1 (enabled). |
Response
200 OK
| Field | Type | Notes |
|---|---|---|
updated | int[] | IDs the call attempted to update (best-effort). |
message | string | Translated confirmation. |
Errors
| HTTP | Cause |
|---|---|
400 Bad Request | Empty / malformed indices or value not in [0,1]. |
401 Unauthorized | Missing or invalid admin Bearer token. |
403 Forbidden | Admin role lacks catalog.products.edit. |

