# updatePhysicalPrinter

> Required permission: RestaurantSettingsWrite

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

```graphql
updatePhysicalPrinter(
  restaurantId: ID!
  physicalPrinterId: ID!
  patch: PhysicalPrinterPatch!
): PhysicalPrinter
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation UpdatePhysicalPrinter($restaurantId: ID!, $physicalPrinterId: ID!, $patch: PhysicalPrinterPatch!) {
  updatePhysicalPrinter(restaurantId: $restaurantId, physicalPrinterId: $physicalPrinterId, patch: $patch) {
    id
    identifyStatus
    cloudPrntServerUrl
    isOnline
    lastOnlineAt
    mqttEnabled
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { updatePhysicalPrinter(...) { __typename } }"}'
```
