API reference

updateEmployee

Required permission: RestaurantPosWrite

graphql
updateEmployee(
  restaurantId: ID!
  employeeId: ID!
  patch: EmployeePatch!
): Employee

Arguments

Name Type Description
restaurantId ID!
employeeId ID!
patch EmployeePatch!

Returns

Employee

Example

graphql
mutation UpdateEmployee($restaurantId: ID!, $employeeId: ID!, $patch: EmployeePatch!) {
  updateEmployee(restaurantId: $restaurantId, employeeId: $employeeId, 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 { updateEmployee(...) { __typename } }"}'