Delete account member

deleteAccountMember(accountId: ID!, userId: ID!): DeletionResult!

Requires account.read; API keys also need delete scope.

Arguments

ArgumentTypeRequiredDescription
accountIdID!Yes
userIdID!YesMember to remove. Members may remove themselves. Removing another member requires account.members.manage. Removing another owner requires account ownership authority. The account must retain at least one owner. Removing an absent member returns 404. Projects and financial history are not touched.

Response

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

FieldTypeDescription
okBoolean!Always true: the deletion was accepted.

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

Example

graphql
mutation DeleteAccountMember($accountId: ID!, $userId: ID!) {
  deleteAccountMember(accountId: $accountId, userId: $userId) {
    ok
  }
}
json
{
  "accountId": "00000000-0000-4000-8000-000000000001",
  "userId": "00000000-0000-4000-8000-000000000001"
}