API reference
createPrinterQueue
Required permission: RestaurantSettingsWrite
createPrinterQueue(
restaurantId: ID!
input: PrinterQueueInput!
): PrinterQueueArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
input |
PrinterQueueInput! |
Returns
Example
mutation CreatePrinterQueue($restaurantId: ID!, $input: PrinterQueueInput!) {
createPrinterQueue(restaurantId: $restaurantId, input: $input) {
id
hasOverdueJobs
isLegacy
name
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { createPrinterQueue(...) { __typename } }"}'