Mutations
acceptWorkspaceInvite
Accept a workspace invitation using its ID. The authenticated user joins the workspace and is assigned the role specified in the invite. The invite is marked as accepted and can no longer be used.
MUTATION
acceptWorkspaceInvite(input: AcceptWorkspaceInviteInput!): AcceptWorkspaceInviteOutput!Arguments
input
required
Returns
invite
error
Mutation
mutation AcceptWorkspaceInvite($input: AcceptWorkspaceInviteInput!) {
acceptWorkspaceInvite(input: $input) {
invite {
id
createdBy {
__typename
... on UserActor {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
email
workspace {
id
name
publicName
isDemoWorkspace
domainName
domainNames
}
isAccepted
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"inviteId": "id"
}
}Response
{
"data": {
"acceptWorkspaceInvite": {
"invite": {
"id": "id",
"createdBy": {
"__typename": "UserActor"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"email": "string",
"workspace": {
"id": "id",
"name": "string",
"publicName": "string",
"isDemoWorkspace": true,
"domainName": "string",
"domainNames": [
"string"
]
},
"isAccepted": true
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?
⌘I
Mutation
mutation AcceptWorkspaceInvite($input: AcceptWorkspaceInviteInput!) {
acceptWorkspaceInvite(input: $input) {
invite {
id
createdBy {
__typename
... on UserActor {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
email
workspace {
id
name
publicName
isDemoWorkspace
domainName
domainNames
}
isAccepted
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"inviteId": "id"
}
}Response
{
"data": {
"acceptWorkspaceInvite": {
"invite": {
"id": "id",
"createdBy": {
"__typename": "UserActor"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"email": "string",
"workspace": {
"id": "id",
"name": "string",
"publicName": "string",
"isDemoWorkspace": true,
"domainName": "string",
"domainNames": [
"string"
]
},
"isAccepted": true
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}
