createOrganizationDomainWithHttpInfo method

Future<Response> createOrganizationDomainWithHttpInfo(
  1. String organizationId,
  2. CreateOrganizationDomainRequest createOrganizationDomainRequest
)

Create a new organization domain.

Creates a new organization domain. By default the domain is verified, but can be optionally set to unverified.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<http.Response> createOrganizationDomainWithHttpInfo(
  String organizationId,
  CreateOrganizationDomainRequest createOrganizationDomainRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/organizations/{organization_id}/domains'
      .replaceAll('{organization_id}', organizationId);

  // ignore: prefer_final_locals
  Object? postBody = createOrganizationDomainRequest;

  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,
  );
}