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