deleteAssetsWithHttpInfo method

Future<Response> deleteAssetsWithHttpInfo(
  1. String companyId,
  2. String assetId
)

Delete single asset by ID

Note: This method returns the HTTP Response.

Parameters:

  • String companyId (required): Unique identifier for the Company

  • String assetId (required): Unique identifier for the Asset

Implementation

Future<Response> deleteAssetsWithHttpInfo(String companyId, String assetId,) async {
  // ignore: prefer_const_declarations
  final path = r'/companies/{company_id}/assets/{asset_id}'
    .replaceAll('{company_id}', companyId)
    .replaceAll('{asset_id}', assetId);

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