declineInvitation

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

Declines an invitation to join the user's network.

This API allows a user to decline an invitation received from another Rainbow user. The invitationId parameter specifies the unique identifier of the invitation to decline. If the invitation is already declined, the result will contain the Failure.INVITATION_ALREADY_DECLINED error code.

Return

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

Parameters

invitationId

The unique identifier of the invitation to decline.