updateDomainWithHttpInfo method

Future<Response> updateDomainWithHttpInfo(
  1. String id,
  2. UpdateDomainOptions updateDomainOptions
)

Update a domain

Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateDomainWithHttpInfo(String id, UpdateDomainOptions updateDomainOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/domains/{id}'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = updateDomainOptions;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'PUT',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}