changeProductionInstanceDomainWithHttpInfo method

Future<Response> changeProductionInstanceDomainWithHttpInfo({
  1. ChangeProductionInstanceDomainRequest? changeProductionInstanceDomainRequest,
})

Update production instance domain

Change the domain of a production instance. Changing the domain requires updating the DNS records accordingly, deploying new SSL certificates, updating your Social Connection's redirect URLs and setting the new keys in your code. WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<http.Response> changeProductionInstanceDomainWithHttpInfo({
  ChangeProductionInstanceDomainRequest?
      changeProductionInstanceDomainRequest,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/instance/change_domain';

  // ignore: prefer_final_locals
  Object? postBody = changeProductionInstanceDomainRequest;

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

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

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