# updatePrinterQueue

> Required permission: RestaurantSettingsWrite

Source: https://docs.gastrogate.io/docs/api/mutations/updatePrinterQueue

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

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `printerQueueId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `patch` | [`PrinterQueuePatch`](https://docs.gastrogate.io/docs/api/types/PrinterQueuePatch.md)! |  |

## Returns

[`PrinterQueue`](https://docs.gastrogate.io/docs/api/types/PrinterQueue.md)

## 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 } }"}'
```
