# updateWhiteLabelGuest

> Required permission: WhiteLabelGuestWrite

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

```graphql
updateWhiteLabelGuest(
  whiteLabelId: ID!
  whiteLabelGuestId: ID!
  patch: WhiteLabelGuestPatch!
): WhiteLabelGuest
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation UpdateWhiteLabelGuest($whiteLabelId: ID!, $whiteLabelGuestId: ID!, $patch: WhiteLabelGuestPatch!) {
  updateWhiteLabelGuest(whiteLabelId: $whiteLabelId, whiteLabelGuestId: $whiteLabelGuestId, patch: $patch) {
    id
    amountSpent
    createdAt
    email
    invitationStatus
    name
  }
}
```

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