API reference

updateOrganizationUser

Required permission: OrganizationUserWrite

graphql
updateOrganizationUser(
  organizationId: ID!
  organizationUserId: ID!
  patch: OrganizationUserPatch!
): OrganizationUser

Arguments

Name Type Description
organizationId ID!
organizationUserId ID!
patch OrganizationUserPatch!

Returns

OrganizationUser

Example

graphql
mutation UpdateOrganizationUser($organizationId: ID!, $organizationUserId: ID!, $patch: OrganizationUserPatch!) {
  updateOrganizationUser(organizationId: $organizationId, organizationUserId: $organizationUserId, patch: $patch) {
    id
    email
    hasCreateCashAdjustmentAccess
    hasDiscountAccess
    hasDiscountedCheckoutAccess
    hasEditMenuAccess
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateOrganizationUser(...) { __typename } }"}'