API reference
updateOrganizationUser
Required permission: OrganizationUserWrite
updateOrganizationUser(
organizationId: ID!
organizationUserId: ID!
patch: OrganizationUserPatch!
): OrganizationUserArguments
| Name | Type | Description |
|---|---|---|
organizationId |
ID! |
|
organizationUserId |
ID! |
|
patch |
OrganizationUserPatch! |
Returns
Example
mutation UpdateOrganizationUser($organizationId: ID!, $organizationUserId: ID!, $patch: OrganizationUserPatch!) {
updateOrganizationUser(organizationId: $organizationId, organizationUserId: $organizationUserId, patch: $patch) {
id
email
hasCreateCashAdjustmentAccess
hasDiscountAccess
hasDiscountedCheckoutAccess
hasEditMenuAccess
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateOrganizationUser(...) { __typename } }"}'