# updateStripeTerminalConfiguration

> Required permission: RestaurantWrite

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

```graphql
updateStripeTerminalConfiguration(
  restaurantId: String!
  patch: StripeTerminalConfigurationPatch!
): Restaurant
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation UpdateStripeTerminalConfiguration($restaurantId: String!, $patch: StripeTerminalConfigurationPatch!) {
  updateStripeTerminalConfiguration(restaurantId: $restaurantId, patch: $patch) {
    id
    autoAcceptDeliveryHeroOrders
    deliveryHeroChainId
    deliveryHeroEnabled
    deliveryHeroVendorId
    deliveryHeroWebhookUrl
  }
}
```

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