deletePromptByNameWithHttpInfo method

Future<Response> deletePromptByNameWithHttpInfo(
  1. String name
)

Delete removes one of the caller org's prompts and every version of it, answering 204.

Delete removes one of the caller org's prompts and every version of it, answering 204. It is scoped to the caller's org, so a name another tenant owns is the same 404 an unknown name gives. There is no undo: the version history goes with it.

Note: This method returns the HTTP Response.

Parameters:

  • String name (required): Name is the prompt to act on, from the path.

Implementation

Future<Response> deletePromptByNameWithHttpInfo(String name,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/prompt/{name}'
    .replaceAll('{name}', name);

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