Skip to content

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

EndpointMethod
/api/admin/catalog/products/mass-update-statusPOST

Request body

FieldTypeRequiredNotes
indicesint[]yesNon-empty array of product IDs.
valueintegeryes0 (disabled) or 1 (enabled).

Response

200 OK

FieldTypeNotes
updatedint[]IDs the call attempted to update (best-effort).
messagestringTranslated confirmation.

Errors

HTTPCause
400 Bad RequestEmpty / malformed indices or value not in [0,1].
401 UnauthorizedMissing or invalid admin Bearer token.
403 ForbiddenAdmin role lacks catalog.products.edit.

Released under the MIT License.