API reference
updatePhysicalPrinter
Required permission: RestaurantSettingsWrite
updatePhysicalPrinter(
restaurantId: ID!
physicalPrinterId: ID!
patch: PhysicalPrinterPatch!
): PhysicalPrinterArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
physicalPrinterId |
ID! |
|
patch |
PhysicalPrinterPatch! |
Returns
Example
mutation UpdatePhysicalPrinter($restaurantId: ID!, $physicalPrinterId: ID!, $patch: PhysicalPrinterPatch!) {
updatePhysicalPrinter(restaurantId: $restaurantId, physicalPrinterId: $physicalPrinterId, patch: $patch) {
id
identifyStatus
cloudPrntServerUrl
isOnline
lastOnlineAt
mqttEnabled
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updatePhysicalPrinter(...) { __typename } }"}'