In Opigno Enterprise invitations used to define a user’s social network.
It’s possible to create only one invitation between two users.
To create an invitation, createUserInvitation
mutation should be called.
It has one required incoming parameter - inviteeUserContextId
which represents ID of the user context that is associated with the invitee user.
The current user context from the request will be used as an invitation initiator.
mutation createUserInvitation {
createUserInvitation(inviteeUserContextId: 1818) {
response {
id
initiatorUserContext {
id
uuid
}
inviteeUserContext {
id
uuid
}
isAccepted
created
status
cta {
title
actionId
arguments {
key
value
}
metadata {
key
value
}
}
}
errors
}
}
If the mutation executed successfully, a UserInvitation
object will be returned in the response.