aiMentorOrgsMentorWithSettingsCreateWithHttpInfo method
Future<Response>
aiMentorOrgsMentorWithSettingsCreateWithHttpInfo(
- String org,
- MentorFromTemplateWithSettingRequest mentorFromTemplateWithSettingRequest
View to create a mentor from a template with settings
Note: This method returns the HTTP Response.
Parameters:
-
String org (required):
-
MentorFromTemplateWithSettingRequest mentorFromTemplateWithSettingRequest (required):
Implementation
Future<Response> aiMentorOrgsMentorWithSettingsCreateWithHttpInfo(String org, MentorFromTemplateWithSettingRequest mentorFromTemplateWithSettingRequest,) async {
// ignore: prefer_const_declarations
final path = r'/api/ai/mentor/orgs/{org}/mentor-with-settings/'
.replaceAll('{org}', org);
// ignore: prefer_final_locals
Object? postBody = mentorFromTemplateWithSettingRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}