Update account

updateAccount(accountId: ID!, input: UpdateAccountInput!): Account!

Requires account.settings.manage.

Arguments

ArgumentTypeRequired
accountIdID!Yes
inputUpdateAccountInput!Yes

Input fields

input

UpdateAccountInput

FieldTypeRequiredDescription
nameStringNoNew account name. Omitted, the current name remains unchanged.
slugStringNoNew account slug. Omitted, the current slug remains unchanged; a duplicate returns 409.

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 UpdateAccount($accountId: ID!, $input: UpdateAccountInput!) {
  updateAccount(accountId: $accountId, input: $input) {
    id
    name
    slug
    createdAt
    updatedAt
  }
}
json
{
  "accountId": "00000000-0000-4000-8000-000000000001",
  "input": {}
}