API reference

deleteEmployeeGroup

Required permission: RestaurantPosWrite

graphql
deleteEmployeeGroup(
  restaurantId: ID!
  employeeGroupId: ID!
): DeletionStatus

Arguments

Name Type Description
restaurantId ID!
employeeGroupId ID!

Returns

DeletionStatus

Example

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