postCommerceStoreByStoreidWithHttpInfo method
Method-override tunnel for clients that cannot send PUT, PATCH or DELETE
Re-dispatches the request into the handler the intended verb would have reached, taking that verb from a _method form value or query parameter and then from the X-HTTP-Method-Override header, the header winning when both are present. Only PUT, PATCH and DELETE are accepted; anything else resolves to 405. The trap is the default: naming NO override at all is treated as a partial update, never as a create. Authorization is whatever the underlying operation requires, since the real handler runs.
Note: This method returns the HTTP Response.
Parameters:
- String storeid (required):
Implementation
Future<Response> postCommerceStoreByStoreidWithHttpInfo(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,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}