Skip to content

Catalog Products — Mass Update Status

Equivalent to POST /api/admin/catalog/products/mass-update-status.

Operation

OperationType
createAdminCatalogProductMassUpdateStatusMutation

Input

FieldTypeRequiredNotes
indicesIterableYesNon-empty list of product ids.
valueIntYes0 disabled, 1 enabled. No other value is accepted.

Payload Fields

FieldTypeDescription
_idIntAlways 1. This is an action result, not a record — ignore it.
updatedIterableThe ids the call attempted to update.
messageStringTranslated confirmation.

Select _id, not id. This is a routeless action result, so its id is not a queryable path.

Behaviour

Each id fires the same events as a single-product update, so search reindexing and cache flushing still run per product. That makes a large batch meaningfully slower than the row count suggests.

The status flip is the only change — nothing else on the product is touched, and there is no partial-failure report beyond the returned updated list.

Errors

MessageCause
The indices field is required and must be a non-empty array.Missing or empty indices
The value field is required and must be 0 or 1.value missing or outside 0/1
You do not have permission to manage products.Token lacks catalog.products.edit

Released under the MIT License.