API reference

updateEmployeeGroup

Required permission: RestaurantPosWrite

graphql
updateEmployeeGroup(
  restaurantId: ID!
  employeeGroupId: ID!
  patch: EmployeeGroupPatch!
): EmployeeGroup

Arguments

Name Type Description
restaurantId ID!
employeeGroupId ID!
patch EmployeeGroupPatch!

Returns

EmployeeGroup

Example

graphql
mutation UpdateEmployeeGroup($restaurantId: ID!, $employeeGroupId: ID!, $patch: EmployeeGroupPatch!) {
  updateEmployeeGroup(restaurantId: $restaurantId, employeeGroupId: $employeeGroupId, patch: $patch) {
    id
    canListDiscounts
    canListProductsWithOpenPrice
    canLogoutTill
    canMakeCashAdjustments
    canManageOpenOrders
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updateEmployeeGroup(...) { __typename } }"}'