updateReservation method
Update reservation.
May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw NotFoundException. May throw GatewayTimeoutException. May throw TooManyRequestsException. May throw ConflictException.
Parameter reservationId
:
Unique reservation ID, e.g. '1234567'
Parameter name
:
Name of the reservation
Implementation
Future<UpdateReservationResponse> updateReservation({
required String reservationId,
String? name,
}) async {
ArgumentError.checkNotNull(reservationId, 'reservationId');
final $payload = <String, dynamic>{
if (name != null) 'name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/prod/reservations/${Uri.encodeComponent(reservationId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateReservationResponse.fromJson(response);
}