revokeInvitationWithHttpInfo method
Revokes an invitation
Revokes the given invitation. Revoking an invitation will prevent the user from using the invitation link that was sent to them. However, it doesn't prevent the user from signing up if they follow the sign up flow. Only active (i.e. non-revoked) invitations can be revoked.
Note: This method returns the HTTP Response
.
Parameters:
- String invitationId (required): The ID of the invitation to be revoked
Implementation
Future<http.Response> revokeInvitationWithHttpInfo(
String invitationId,
) async {
// ignore: prefer_const_declarations
final path = r'/invitations/{invitation_id}/revoke'
.replaceAll('{invitation_id}', invitationId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
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,
);
}