deleteOrganizationDomainWithHttpInfo method

Future<Response> deleteOrganizationDomainWithHttpInfo(
  1. String organizationId,
  2. String domainId
)

Remove a domain from an organization.

Removes the given domain from the organization.

Note: This method returns the HTTP Response.

Parameters:

  • String organizationId (required): The ID of the organization the domain belongs to

  • String domainId (required): The ID of the domain

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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