deletePlatformProjectsByProjectAppsByAppDomainsByHostWithHttpInfo method

Future<Response> deletePlatformProjectsByProjectAppsByAppDomainsByHostWithHttpInfo(
  1. String project,
  2. String app,
  3. String host
)

Detaches a hostname and releases the claim.

Detaches a hostname and releases the claim. It drops the host from the app's ingress and releases any custom claim on it, so the name becomes claimable again — by this org or any other. Answers 204. The default host is permanent and cannot be removed: that is 400, not 404. A host that is neither attached nor claimed here is 404. Requires a validated principal; 403 without one.

Note: This method returns the HTTP Response.

Parameters:

  • String project (required): Project is the project the application lives under, from the path.

  • String app (required): App is the application's slug, from the path.

  • String host (required): Host is the hostname, from the path.

Implementation

Future<Response> deletePlatformProjectsByProjectAppsByAppDomainsByHostWithHttpInfo(String project, String app, String host,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/platform/projects/{project}/apps/{app}/domains/{host}'
    .replaceAll('{project}', project)
    .replaceAll('{app}', app)
    .replaceAll('{host}', host);

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