deleteCommerceStoreByStoreidListingByKey method

Future<void> deleteCommerceStoreByStoreidListingByKey(
  1. String storeid,
  2. String key
)

Remove a listing override

Drops the key from the store's listing map and re-saves the store, answering 204 with no body. It UN-OVERRIDES rather than deletes: the product, variant or bundle itself is untouched and simply reverts to its catalog values on this storefront. A key that is not present is 404, and so is a store id outside the caller org's namespace. Admin-gated.

Parameters:

Implementation

Future<void> deleteCommerceStoreByStoreidListingByKey(String storeid, String key,) async {
  final response = await deleteCommerceStoreByStoreidListingByKeyWithHttpInfo(storeid, key,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}