createAccount

Create a team account that the caller owns.

Arguments

  • inputCreateAccountInput!required

  • input.nameString!required

  • input.slugString

    Unique 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.

Responses

mutation CreateAccount($input: CreateAccountInput!) {  createAccount(input: $input) {    id    slug    name    kind    createdAt    updatedAt    membership {      role      capabilities    }  }}
{  "data": {    "createAccount": {      "id": "string",      "slug": "string",      "name": "string",      "kind": "string",      "createdAt": "string",      "updatedAt": "string",      "membership": {        "role": "string",        "capabilities": [          "string"        ]      }    }  }}

The Account! in data.createAccount.