cancelSentInvitation

abstract suspend fun cancelSentInvitation(invitationId: String): RainbowResult<Unit>

Cancels an invitation that has been sent by the user.

This API cancels a sent invitation using the provided invitation ID. Once canceled, the invited user will no longer see the invitation as pending. If the invitation has already been canceled, the result will include the Failure.INVITATION_ALREADY_CANCELED error code.

Return

A RainbowResult indicating the success or failure of the operation. In case of failure, it will contain error details.

Parameters

invitationId

The unique identifier of the invitation to cancel.