deleteFlagsDefsByKeyWithHttpInfo method

Future<Response> deleteFlagsDefsByKeyWithHttpInfo(
  1. String key
)

Removes one flag definition by key and records the deletion in the change log.

Removes one flag definition by key and records the deletion in the change log. A key the caller's store does not hold is a 404.

Note: This method returns the HTTP Response.

Parameters:

  • String key (required): Key is the flag key to act on, from the path.

Implementation

Future<Response> deleteFlagsDefsByKeyWithHttpInfo(String key,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/flags/defs/{key}'
    .replaceAll('{key}', key);

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