API reference
resetUserPassword
The resetUserPassword mutation. Returns AccessToken.
resetUserPassword(
password: String!
token: String!
): AccessTokenArguments
| Name | Type | Description |
|---|---|---|
password |
String! |
|
token |
String! |
Returns
Example
mutation ResetUserPassword($password: String!, $token: String!) {
resetUserPassword(password: $password, token: $token) {
expires
token
parseToken
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { resetUserPassword(...) { __typename } }"}'