API reference

confirmChangeUserEmail

The confirmChangeUserEmail mutation. Returns User.

graphql
confirmChangeUserEmail(
  requestId: ID!
  code: String!
): User

Arguments

Name Type Description
requestId ID!
code String!

Returns

User

Example

graphql
mutation ConfirmChangeUserEmail($requestId: ID!, $code: String!) {
  confirmChangeUserEmail(requestId: $requestId, code: $code) {
    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 { confirmChangeUserEmail(...) { __typename } }"}'