revokeAllSessionsWithHttpInfo method
Revoke all active sessions for a user
Revokes all user sessions from the provided user id and session id strings. ##### Permissions Must be logged in as the user being updated or have the edit_other_users
permission. Minimum server version: 4.4
Note: This method returns the HTTP Response
.
Parameters:
- String userId (required): User GUID
Implementation
Future<Response> revokeAllSessionsWithHttpInfo(
String userId,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/sessions/revoke/all'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}