Mutation
mutation CreateUserAccount($input: CreateUserAccountInput!) {
createUserAccount(input: $input) {
userAccount {
id
fullName
publicName
email
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"fullName": "string",
"publicName": "string"
}
}Response
{
"data": {
"createUserAccount": {
"userAccount": {
"id": "id",
"fullName": "string",
"publicName": "string",
"email": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createUserAccount
Creates or updates the user account for the currently authenticated user. Idempotent: calling this multiple times with the same identity will update the existing account rather than creating a duplicate. Used during the initial onboarding flow to set the user’s display names.
MUTATION
createUserAccount(input: CreateUserAccountInput!): CreateUserAccountOutput!Arguments
input
required
Returns
userAccount
error
Mutation
mutation CreateUserAccount($input: CreateUserAccountInput!) {
createUserAccount(input: $input) {
userAccount {
id
fullName
publicName
email
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"fullName": "string",
"publicName": "string"
}
}Response
{
"data": {
"createUserAccount": {
"userAccount": {
"id": "id",
"fullName": "string",
"publicName": "string",
"email": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

