deleteToolsSkillsByIdWithHttpInfo method

Future<Response> deleteToolsSkillsByIdWithHttpInfo(
  1. String id
)

Removes one of the caller org's authored skills.

Removes one of the caller org's authored skills. Scoped to the caller's org, so an id belonging to another tenant is never reached. Removing what is not there is not an error — the caller's intent is "gone", and it is.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): ID is the skill to remove, from the path. It is the skill's name.

Implementation

Future<Response> deleteToolsSkillsByIdWithHttpInfo(String id,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/tools/skills/{id}'
    .replaceAll('{id}', id);

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