postToolsSkillsWithHttpInfo method
Adds or revises one of the caller org's own skills, and answers 201 with the stored record.
Adds or revises one of the caller org's own skills, and answers 201 with the stored record. The id is derived from the name, so writing the same name again REVISES that skill rather than accumulating near-duplicates that would then collide in the registry. An org's skills are private to it by construction — they live in a different store from the brand's embedded catalogue and have no path into the public gallery — and a brand skill always wins a name collision against an org's.
Note: This method returns the HTTP Response.
Parameters:
- SkillIn skillIn (required):
Implementation
Future<Response> postToolsSkillsWithHttpInfo(SkillIn skillIn,) async {
// ignore: prefer_const_declarations
final path = r'/v1/tools/skills';
// ignore: prefer_final_locals
Object? postBody = skillIn;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}