# createWhiteLabelUser

> Required permission: WhiteLabelUserWrite

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

```graphql
createWhiteLabelUser(
  whiteLabelId: ID!
  input: WhiteLabelUserInput!
): WhiteLabelUser
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation CreateWhiteLabelUser($whiteLabelId: ID!, $input: WhiteLabelUserInput!) {
  createWhiteLabelUser(whiteLabelId: $whiteLabelId, input: $input) {
    id
    email
    hasDiscountAccess
    hasGuestRegistryAccess
    hasMarketingPushNotificationAccess
    hasSettingsAccess
  }
}
```

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