riskClearReferenceWithHttpInfo method

Future<Response> riskClearReferenceWithHttpInfo(
  1. String set_, {
  2. String? key,
})

Removes one of your organisation's overrides.

Removes one of your organisation's overrides. It removes an entry your organisation wrote, never a baseline member: the published set is not writable from here, so a removal can only ever restore the baseline's own answer.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> riskClearReferenceWithHttpInfo(String set_, { String? key, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/reference/{set}'
    .replaceAll('{set}', set_);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (key != null) {
    queryParams.addAll(_queryParams('', 'key', key));
  }

  const contentTypes = <String>[];


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