# requestChangeUserEmail

> Required permission: UserWriteInSudoMode

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

```graphql
requestChangeUserEmail(
  userId: ID!
  email: EmailAddress!
): ChangeUserEmailRequest
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `userId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `email` | [`EmailAddress`](https://docs.gastrogate.io/docs/api/types/EmailAddress.md)! |  |

## Returns

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

## Example

```graphql
mutation RequestChangeUserEmail($userId: ID!, $email: EmailAddress!) {
  requestChangeUserEmail(userId: $userId, email: $email) {
    id
  }
}
```

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