Create account

createAccount(input: CreateAccountInput!): Account!

Arguments

ArgumentTypeRequired
inputCreateAccountInput!Yes

Input fields

input

CreateAccountInput

FieldTypeRequiredDescription
nameString!Yes
slugStringNoUnique account slug. Omit to derive it deterministically from the name. A duplicate slug is rejected as already existing; creation does not replay the existing account. Filter the account list by slug to find it.

Response

Returns Account!. Open the type for its fields and nested types.

FieldTypeDescription
idID!
slugString!
nameString!
kindString!
createdAtString!
updatedAtString!
membershipAccountMembership!The caller's role and resolved account capabilities.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation CreateAccount($input: CreateAccountInput!) {
  createAccount(input: $input) {
    id
    name
    slug
    createdAt
    updatedAt
  }
}
json
{
  "input": {
    "name": "example"
  }
}