regenCommandTokenWithHttpInfo method
Generate a new token
Generate a new token for the command based on command id string. ##### Permissions Must have manage_slash_commands
permission for the team the command is in.
Note: This method returns the HTTP Response
.
Parameters:
- String commandId (required): ID of the command to generate the new token
Implementation
Future<Response> regenCommandTokenWithHttpInfo(
String commandId,
) async {
// ignore: prefer_const_declarations
final path = r'/commands/{command_id}/regen_token'.replaceAll('{command_id}', commandId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}