updateProductRestEndpointPage method
Updates a product REST endpoint page.
May throw AccessDeniedException.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter portalProductId :
The portal product identifier.
Parameter productRestEndpointPageId :
The product REST endpoint identifier.
Parameter displayContent :
The display content.
Parameter tryItState :
The try it state of a product REST endpoint page.
Implementation
Future<UpdateProductRestEndpointPageResponse> updateProductRestEndpointPage({
required String portalProductId,
required String productRestEndpointPageId,
EndpointDisplayContent? displayContent,
TryItState? tryItState,
}) async {
final $payload = <String, dynamic>{
if (displayContent != null) 'displayContent': displayContent,
if (tryItState != null) 'tryItState': tryItState.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/v2/portalproducts/${Uri.encodeComponent(portalProductId)}/productrestendpointpages/${Uri.encodeComponent(productRestEndpointPageId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateProductRestEndpointPageResponse.fromJson(response);
}