patchCommerceStoreByStoreidListingByKey method

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

Confirm a listing override exists and re-save the store

Requires the key to already be present — an absent one is 404 — and answers the store's listing map at 200. Read the behaviour before relying on it: the decoded body is applied to a COPY taken out of the map and is never assigned back, so the stored listing is unchanged and the map returned is exactly the map that was already there. An actual edit to an existing listing has to go through the upsert, which does write its result back into the store. A body that fails to decode is still 400. Admin-gated and namespaced to the caller's org.

Parameters:

Implementation

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