Request Reset Password

Request a reset password code

The requestResetPassword mutation allows users to send a password request based on a given email. As a result of the executing of this mutation, a code will be returned, use it in the resetPassword mutation to successfully reset the password.

Required Arguments

Argument

Type

Description

email

String

User's email which password will be reset

Available Fields

Field

Type

Description

success

Boolean

True if the reset password has been created

False if the reset password has not been created

message

String

Description of the result

resetPasswordCode

Number

Examples

The following examples request a reset password code.

Graphql example

 mutation {
 requestResetPassword(email: "user@mail.com") {
    success
    message
    resetPasswordCode
  }
  }

Curl Example

curl --location --request POST 'https://production.suggestic.com/graphql' \
--header 'Authorization: Token <API-Token>' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation {\n    requestResetPassword(email: \"user@mail.com\") {\n        success message resetPasswordCode\n    }\n}","variables":{}}'

Last updated