Update account member

updateAccountMember(input: AccountMemberUpdateInput!): AccountMember!

Requires account.members.manage.

Arguments

ArgumentTypeRequired
inputAccountMemberUpdateInput!Yes

Input fields

input

AccountMemberUpdateInput

FieldTypeRequiredDescription
accountIdID!Yes
userIdID!Yes
roleString!YesMember role. Promoting to or demoting from owner requires account ownership authority. The account must retain at least one owner. Setting the current role succeeds without a change.

Response

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

FieldType
userIdID!
emailString!
nameString
avatarSrcString
roleString!
invitedByUserIdID
createdAtString!
updatedAtString!

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

Example

graphql
mutation UpdateAccountMember($input: AccountMemberUpdateInput!) {
  updateAccountMember(input: $input) {
    name
    createdAt
    updatedAt
    avatarSrc
    email
  }
}
json
{
  "input": {
    "accountId": "00000000-0000-4000-8000-000000000001",
    "userId": "00000000-0000-4000-8000-000000000001",
    "role": "example"
  }
}