cta
parameter in UserInvitation
object (see an example here).
Accept invitation
Only pending invitation can be accepted by the user associated with invitee context. If invitation accepted, the mutual connection is created and two users are added to each other’s network. To accept an invitation,acceptUserInvitation
mutation should be used.
It has one required incoming argument - invitationId
.
UserInvitation
object will be returned in the response.
Decline invitation
Pending invitation can be declined by the user associated with the invitee context. If invitation declined, the connection between two users will not be created, and the new invitation can be sent to the same invitee. To decline an invitation, usedeclineUserInvitation
mutation. As in the previous example, this mutation has one required incoming argument - invitationId
.
true
returned, mutation has been executed without any issues, and the invitation has been declined.
Cancel invitation
Pending invitation can be cancelled by the user associated with the initiator context. To cancel the invitation, usecancelUserInvitation
mutation. This mutation also has one required incoming argument - invitationId
.