promoteGuestToUserWithHttpInfo method
Promote a guest to user
Convert a guest into a regular user. This will convert the guest into a user for the whole system while retaining any team and channel memberships and automatically joining them to the default channels. Minimum server version: 5.16 ##### Permissions Must be logged in as the user or have the promote_guest
permission.
Note: This method returns the HTTP Response
.
Parameters:
- String userId (required): User GUID
Implementation
Future<Response> promoteGuestToUserWithHttpInfo(
String userId,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/promote'.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,
);
}