API reference

resetUserPassword

The resetUserPassword mutation. Returns AccessToken.

graphql
resetUserPassword(
  password: String!
  token: String!
): AccessToken

Arguments

Name Type Description
password String!
token String!

Returns

AccessToken

Example

graphql
mutation ResetUserPassword($password: String!, $token: String!) {
  resetUserPassword(password: $password, token: $token) {
    expires
    token
    parseToken
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { resetUserPassword(...) { __typename } }"}'