postCommerceCatalogSeedWithHttpInfo method

Future<Response> postCommerceCatalogSeedWithHttpInfo()

Seed the embedded catalog, without disturbing edits already made

Upserts the shipped catalog seed and answers how many entries it created. It is idempotent and non-destructive — an entry an administrator has since edited is left alone — so it is safe to run against a live catalog to fill in what is missing. PLATFORM admin only; an org-level admin is refused 403.

Note: This method returns the HTTP Response.

Implementation

Future<Response> postCommerceCatalogSeedWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/commerce/catalog/seed';

  // 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,
  );
}