# updateWhiteLabelUser

> Required permission: WhiteLabelUserWrite

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

```graphql
updateWhiteLabelUser(
  whiteLabelId: ID!
  whiteLabelUserId: ID!
  patch: WhiteLabelUserPatch!
): WhiteLabelUser
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation UpdateWhiteLabelUser($whiteLabelId: ID!, $whiteLabelUserId: ID!, $patch: WhiteLabelUserPatch!) {
  updateWhiteLabelUser(whiteLabelId: $whiteLabelId, whiteLabelUserId: $whiteLabelUserId, patch: $patch) {
    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 { updateWhiteLabelUser(...) { __typename } }"}'
```
