aiMentorOrgsUsersPromptCreateWithHttpInfo method
View to create/retrieve a prompt
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> aiMentorOrgsUsersPromptCreateWithHttpInfo(String org, String userId, Prompt prompt,) async {
// ignore: prefer_const_declarations
final path = r'/api/ai/mentor/orgs/{org}/users/{user_id}/prompt/'
.replaceAll('{org}', org)
.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = prompt;
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,
);
}