updateSipMediaApplication method
Updates the details of the specified SIP media application.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw NotFoundException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter sipMediaApplicationId :
The SIP media application ID.
Parameter endpoints :
The new set of endpoints for the specified SIP media application.
Parameter name :
The new name for the specified SIP media application.
Implementation
Future<UpdateSipMediaApplicationResponse> updateSipMediaApplication({
required String sipMediaApplicationId,
List<SipMediaApplicationEndpoint>? endpoints,
String? name,
}) async {
final $payload = <String, dynamic>{
if (endpoints != null) 'Endpoints': endpoints,
if (name != null) 'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/sip-media-applications/${Uri.encodeComponent(sipMediaApplicationId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateSipMediaApplicationResponse.fromJson(response);
}