API reference

deleteOrganizationUser

Required permission: OrganizationUserWrite

graphql
deleteOrganizationUser(
  organizationId: ID!
  organizationUserId: ID!
): Organization

Arguments

Name Type Description
organizationId ID!
organizationUserId ID!

Returns

Organization

Example

graphql
mutation DeleteOrganizationUser($organizationId: ID!, $organizationUserId: ID!) {
  deleteOrganizationUser(organizationId: $organizationId, organizationUserId: $organizationUserId) {
    id
    fortnoxAccountingImportEnabled
    hasFortnoxAccountingImportAccess
    hasFortnoxAccountingImportCredentials
    accountantEmail
    createdAt
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { deleteOrganizationUser(...) { __typename } }"}'