Skip to content

Mass Update Theme Status

Bulk-set the status flag on several theme customization blocks in one call. Pass the block ids in indices and the target status in value1 for active, 0 for inactive.

The updated field returns a plain array of the ids that were updated.

Operation

OperationTypePurpose
createAdminSettingsThemeMassUpdateStatusMutationBulk-set the active/inactive status of several blocks

Input

FieldTypeRequiredPurpose
indicesIterableyesArray of numeric block ids to update. An empty array is rejected.
valueIntyesThe status to set — 1 (active) or 0 (inactive).

Permission: settings.themes.edit. All operations require an admin Bearer token — see Authentication.

Released under the MIT License.