# createEmployeeGroup

> Required permission: RestaurantPosWrite

Source: https://docs.gastrogate.io/docs/api/mutations/createEmployeeGroup

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

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `input` | [`EmployeeGroupInput`](https://docs.gastrogate.io/docs/api/types/EmployeeGroupInput.md)! |  |

## Returns

[`EmployeeGroup`](https://docs.gastrogate.io/docs/api/types/EmployeeGroup.md)

## 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 } }"}'
```
