postCommerceStoreByStoreidListingByKey method

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

Add a listing override under a new key

Creates the override and answers the store's ENTIRE listing map at 201 with a Location header — not just the entry that was added. A key already present is refused 400: creation never silently overwrites, so changing an existing listing has to be an explicit replace. The stored listing has its currency stamped from the store's own, which the replace path does not do. The key is matched exactly here, with none of the slug or SKU fallback the read allows. Admin-gated and resolved inside the caller org's namespace.

Parameters:

Implementation

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