# updateTill

> Required permission: RestaurantPosWrite

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

```graphql
updateTill(
  restaurantId: ID!
  tillId: ID!
  patch: TillPatch!
): Till
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation UpdateTill($restaurantId: ID!, $tillId: ID!, $patch: TillPatch!) {
  updateTill(restaurantId: $restaurantId, tillId: $tillId, patch: $patch) {
    id
    fixedDeliveryTime
    layout
    name
    preferredApiEnvironment
    sendOrderToKitchen
  }
}
```

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