API reference

createPrinterQueue

Required permission: RestaurantSettingsWrite

graphql
createPrinterQueue(
  restaurantId: ID!
  input: PrinterQueueInput!
): PrinterQueue

Arguments

Name Type Description
restaurantId ID!
input PrinterQueueInput!

Returns

PrinterQueue

Example

graphql
mutation CreatePrinterQueue($restaurantId: ID!, $input: PrinterQueueInput!) {
  createPrinterQueue(restaurantId: $restaurantId, input: $input) {
    id
    hasOverdueJobs
    isLegacy
    name
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { createPrinterQueue(...) { __typename } }"}'