Mutations
deleteWorkspaceInvite
Cancel and delete a pending workspace invite. The invited user will no longer be able to accept it. The deleted invite is returned.
MUTATION
deleteWorkspaceInvite(input: DeleteWorkspaceInviteInput!): DeleteWorkspaceInviteOutput!Arguments
input
required
Returns
invite
error
Mutation
mutation DeleteWorkspaceInvite($input: DeleteWorkspaceInviteInput!) {
deleteWorkspaceInvite(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": {
"deleteWorkspaceInvite": {
"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 DeleteWorkspaceInvite($input: DeleteWorkspaceInviteInput!) {
deleteWorkspaceInvite(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": {
"deleteWorkspaceInvite": {
"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"
}
]
}
}
}
}
