# registerControlUnit

> Required permission: RestaurantReportWrite

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

```graphql
registerControlUnit(
  restaurantId: ID!
  taxIdNumber: String!
): Restaurant
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation RegisterControlUnit($restaurantId: ID!, $taxIdNumber: String!) {
  registerControlUnit(restaurantId: $restaurantId, taxIdNumber: $taxIdNumber) {
    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 { registerControlUnit(...) { __typename } }"}'
```
