updatePhoneNumberWithHttpInfo method
Future<Response>
updatePhoneNumberWithHttpInfo(
- String phoneNumberId, {
- UpdatePhoneNumberRequest? updatePhoneNumberRequest,
Update a phone number
Updates a phone number
Note: This method returns the HTTP Response
.
Parameters:
-
String phoneNumberId (required): The ID of the phone number to update
-
UpdatePhoneNumberRequest updatePhoneNumberRequest:
Implementation
Future<http.Response> updatePhoneNumberWithHttpInfo(
String phoneNumberId, {
UpdatePhoneNumberRequest? updatePhoneNumberRequest,
}) async {
// ignore: prefer_const_declarations
final path = r'/phone_numbers/{phone_number_id}'
.replaceAll('{phone_number_id}', phoneNumberId);
// ignore: prefer_final_locals
Object? postBody = updatePhoneNumberRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}