Mutation
mutation CreateUser($input: CreateUserInput!) {
createUser(input: $input) {
user {
email
uid
fullName
accountType
status
inviteStatus
}
}
}Variables
{
"input": {
"email": "string",
"accountType": "ADMIN"
}
}Response
{
"data": {
"createUser": {
"user": {
"email": "string",
"uid": "string",
"fullName": "string",
"accountType": "ADMIN",
"status": "ACTIVE",
"inviteStatus": "PENDING"
}
}
}
}createUser
Invites a person by email to a workspace with a role, and sends them the invitation email. The invitee then appears in users as INVITED. It acts on the workspace the API key targets: a workspace key’s own, or the one in the X-Paradime-Workspace header. Needs users:admin:write.
MUTATION
createUser(input: CreateUserInput!): CreateUserPayload!Arguments
input
required
The person to invite.
Returns
user
User!
The invitee, INVITED with a PENDING invitation.
Mutation
mutation CreateUser($input: CreateUserInput!) {
createUser(input: $input) {
user {
email
uid
fullName
accountType
status
inviteStatus
}
}
}Variables
{
"input": {
"email": "string",
"accountType": "ADMIN"
}
}Response
{
"data": {
"createUser": {
"user": {
"email": "string",
"uid": "string",
"fullName": "string",
"accountType": "ADMIN",
"status": "ACTIVE",
"inviteStatus": "PENDING"
}
}
}
}