# connectWhiteLabelGuest

> Note that you can pass in the white label 'label' instead of 'id' to this mutation, in order to facilitate old clients.

Required permission: Authenticated

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

```graphql
connectWhiteLabelGuest(
  whiteLabelId: ID!
  input: WhiteLabelGuestConnectionInput!
): User
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `whiteLabelId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `input` | [`WhiteLabelGuestConnectionInput`](https://docs.gastrogate.io/docs/api/types/WhiteLabelGuestConnectionInput.md)! |  |

## Returns

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

## Example

```graphql
mutation ConnectWhiteLabelGuest($whiteLabelId: ID!, $input: WhiteLabelGuestConnectionInput!) {
  connectWhiteLabelGuest(whiteLabelId: $whiteLabelId, input: $input) {
    id
    termsOfServiceAccepted
    username
    isEphemeral
    isSuperUser
    hasBedrockAccess
  }
}
```

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