updateProductPage method

Future<UpdateProductPageResponse> updateProductPage({
  1. required String portalProductId,
  2. required String productPageId,
  3. DisplayContent? displayContent,
})

Updates a product page of a portal product.

May throw AccessDeniedException. May throw BadRequestException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter portalProductId : The portal product identifier.

Parameter productPageId : The portal product identifier.

Parameter displayContent : The content of the product page.

Implementation

Future<UpdateProductPageResponse> updateProductPage({
  required String portalProductId,
  required String productPageId,
  DisplayContent? displayContent,
}) async {
  final $payload = <String, dynamic>{
    if (displayContent != null) 'displayContent': displayContent,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/v2/portalproducts/${Uri.encodeComponent(portalProductId)}/productpages/${Uri.encodeComponent(productPageId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateProductPageResponse.fromJson(response);
}