aiBotV1BotsBotUpdateWithHttpInfo method
Create modify and update bot information for a specific tenant.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> aiBotV1BotsBotUpdateWithHttpInfo(int id, String org, BotCreate botCreate,) async {
// ignore: prefer_const_declarations
final path = r'/api/ai/bot/v1/bots/{org}/bot/{id}/'
.replaceAll('{id}', id.toString())
.replaceAll('{org}', org);
// ignore: prefer_final_locals
Object? postBody = botCreate;
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,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}