API reference

createEmployeeGroup

Required permission: RestaurantPosWrite

graphql
createEmployeeGroup(
  restaurantId: ID!
  input: EmployeeGroupInput!
): EmployeeGroup

Arguments

Name Type Description
restaurantId ID!
input EmployeeGroupInput!

Returns

EmployeeGroup

Example

graphql
mutation CreateEmployeeGroup($restaurantId: ID!, $input: EmployeeGroupInput!) {
  createEmployeeGroup(restaurantId: $restaurantId, input: $input) {
    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 { createEmployeeGroup(...) { __typename } }"}'