API reference

updatePhysicalPrinter

Required permission: RestaurantSettingsWrite

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

Arguments

Name Type Description
restaurantId ID!
physicalPrinterId ID!
patch PhysicalPrinterPatch!

Returns

PhysicalPrinter

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