gaDeviceModelMetricItemsIdPropIdDeleteWithHttpInfo method

Future<Response> gaDeviceModelMetricItemsIdPropIdDeleteWithHttpInfo(
  1. String id,
  2. String propId
)

Delete a device model metric item by ID

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): Path param: id

  • String propId (required): Path param: propId

Implementation

Future<Response> gaDeviceModelMetricItemsIdPropIdDeleteWithHttpInfo(
  String id,
  String propId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/ga/device-model-metric-items/{id}/{propId}'
      .replaceAll('{id}', id)
      .replaceAll('{propId}', propId);

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