API reference
updateEmployee
Required permission: RestaurantPosWrite
updateEmployee(
restaurantId: ID!
employeeId: ID!
patch: EmployeePatch!
): EmployeeArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
employeeId |
ID! |
|
patch |
EmployeePatch! |
Returns
Example
mutation UpdateEmployee($restaurantId: ID!, $employeeId: ID!, $patch: EmployeePatch!) {
updateEmployee(restaurantId: $restaurantId, employeeId: $employeeId, 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 { updateEmployee(...) { __typename } }"}'