Change password (/change) Print

  • change, password, user
  • 0

The day will come when you will need to change your password and that is the reason we implemented this method.

To change your password just send a PUT request to https://nacp01.noraina.net/api/change whith this JSON payload:

{
	"password": "my_new_password"
}

As an example, this is how you can do it with curl:

curl --location --request PUT 'https://nacp01.noraina.net/api/change' \
--header 'Content-Type: application/json' \
--header 'x-access-token: {{token}}' \
--data-raw '{
	"password": "my_password"
}'

And if everything went as expected, you should get a response like the one below:

{
    "status": "success",
    "data": {
        "message": "Your password has been changed successfully."
    }
}

Was this answer helpful?

« Back