API reference
createEmployeeGroup
Required permission: RestaurantPosWrite
createEmployeeGroup(
restaurantId: ID!
input: EmployeeGroupInput!
): EmployeeGroupArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
EmployeeGroupInput! |
Returns
Example
mutation CreateEmployeeGroup($restaurantId: ID!, $input: EmployeeGroupInput!) {
createEmployeeGroup(restaurantId: $restaurantId, input: $input) {
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 { createEmployeeGroup(...) { __typename } }"}'