putCommerceStoreByStoreidWithHttpInfo method

Future<Response> putCommerceStoreByStoreidWithHttpInfo(
  1. String storeid
)

Replace a storefront outright

This is a true REPLACEMENT, not a merge: the stored key is preserved but the body is decoded onto a fresh entity, so every field the body omits is written back as its zero value. Use the partial update when you mean to change part of a store. The id is resolved inside the caller org's own namespace, so an unknown or foreign id is a 404 before anything is written. Requires an admin token, or one holding both store read and store write.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> putCommerceStoreByStoreidWithHttpInfo(String storeid,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/commerce/store/{storeid}'
    .replaceAll('{storeid}', storeid);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'PUT',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}