patchBotWithHttpInfo method
Patch a bot
Partially update a bot by providing only the fields you want to update. Omitted fields will not be updated. The fields that can be updated are defined in the request body, all other provided fields will be ignored. ##### Permissions Must have manage_bots
permission. Minimum server version: 5.10
Note: This method returns the HTTP Response
.
Parameters:
-
String botUserId (required): Bot user ID
-
MmCreateBotRequest mmCreateBotRequest (required): Bot to be created
Implementation
Future<Response> patchBotWithHttpInfo(
String botUserId,
MmCreateBotRequest mmCreateBotRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/bots/{bot_user_id}'.replaceAll('{bot_user_id}', botUserId);
// ignore: prefer_final_locals
Object? postBody = mmCreateBotRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}