patchCommerceStoreByStoreidWithHttpInfo method
Change part of a storefront
Loads the stored store and decodes the body over it, so only the fields the body names change and everything else keeps its stored value — the difference from the full replace, which clears what it is not told. Answers the merged entity. The id is resolved inside the caller org's own namespace, so an unknown or foreign id is 404. Requires an admin token, or one holding both store read and store write.
Note: This method returns the HTTP Response.
Parameters:
- String storeid (required):
Implementation
Future<Response> patchCommerceStoreByStoreidWithHttpInfo(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,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}