API reference
updateEmployeeGroup
Required permission: RestaurantPosWrite
updateEmployeeGroup(
restaurantId: ID!
employeeGroupId: ID!
patch: EmployeeGroupPatch!
): EmployeeGroupArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
employeeGroupId |
ID! |
|
patch |
EmployeeGroupPatch! |
Returns
Example
mutation UpdateEmployeeGroup($restaurantId: ID!, $employeeGroupId: ID!, $patch: EmployeeGroupPatch!) {
updateEmployeeGroup(restaurantId: $restaurantId, employeeGroupId: $employeeGroupId, patch: $patch) {
id
canListDiscounts
canListProductsWithOpenPrice
canLogoutTill
canMakeCashAdjustments
canManageOpenOrders
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updateEmployeeGroup(...) { __typename } }"}'