API reference

deleteEmployee

Required permission: RestaurantPosWrite

graphql
deleteEmployee(
  restaurantId: ID!
  employeeId: ID!
): DeletionStatus

Arguments

Name Type Description
restaurantId ID!
employeeId ID!

Returns

DeletionStatus

Example

graphql
mutation DeleteEmployee($restaurantId: ID!, $employeeId: ID!) {
  deleteEmployee(restaurantId: $restaurantId, employeeId: $employeeId)
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { deleteEmployee(...) { __typename } }"}'