API reference

createEmployee

Required permission: RestaurantPosWrite

graphql
createEmployee(
  restaurantId: ID!
  input: EmployeeInput!
): Employee

Arguments

Name Type Description
restaurantId ID!
input EmployeeInput!

Returns

Employee

Example

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