API reference

updatePrinterQueue

Required permission: RestaurantSettingsWrite

graphql
updatePrinterQueue(
  restaurantId: ID!
  printerQueueId: ID!
  patch: PrinterQueuePatch!
): PrinterQueue

Arguments

Name Type Description
restaurantId ID!
printerQueueId ID!
patch PrinterQueuePatch!

Returns

PrinterQueue

Example

graphql
mutation UpdatePrinterQueue($restaurantId: ID!, $printerQueueId: ID!, $patch: PrinterQueuePatch!) {
  updatePrinterQueue(restaurantId: $restaurantId, printerQueueId: $printerQueueId, patch: $patch) {
    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 { updatePrinterQueue(...) { __typename } }"}'