Interface CategoryRemoveStoreAction

All Superinterfaces:
CategoryUpdateAction, ResourceUpdateAction<CategoryUpdateAction>

public interface CategoryRemoveStoreAction extends CategoryUpdateAction

This action locks the Category and its parent Category. For details, see Category tree locking.

Every direct child Category must be assigned to at least one Store in that set; otherwise, the action is rejected.

  • When updating a Category via the general endpoint, all Stores can be removed as a global Category is accessible in all Stores.
  • When updating a Category via the Store-specific endpoint, you can remove the last Store only if at least one Store remains; otherwise, an InvalidOperation error is returned. If you do not have permission for the referenced Store, an InvalidInput error is returned.

Example to create an instance using the builder pattern

     CategoryRemoveStoreAction categoryRemoveStoreAction = CategoryRemoveStoreAction.builder()
             .store(storeBuilder -> storeBuilder)
             .build()