Skip to content

Category — Mass Update Status

Bulk-flips the status (enabled/disabled) of a batch of categories.

Endpoint

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

Request body

FieldTypeRequiredNotes
indicesinteger[]yesCategory ids to update.
valueintegeryes0 to disable, 1 to enable.

Response

200 OK:

json
{
  "updated": [12, 18],
  "message": "Categories status updated successfully."
}

Errors

HTTPCause
401 UnauthorizedMissing or invalid Bearer token

Released under the MIT License.