API reference
updatePosTerminal
Required permission: RestaurantReportWrite
updatePosTerminal(
restaurantId: ID!
posTerminalId: ID!
patch: PosTerminalPatch!
): PosTerminalArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
posTerminalId |
ID! |
|
patch |
PosTerminalPatch! |
Returns
Example
mutation UpdatePosTerminal($restaurantId: ID!, $posTerminalId: ID!, $patch: PosTerminalPatch!) {
updatePosTerminal(restaurantId: $restaurantId, posTerminalId: $posTerminalId, patch: $patch) {
id
description
externalId
isActive
isOnline
lastOnlineAt
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { updatePosTerminal(...) { __typename } }"}'