/user/resetpassword v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Users
postUserResetPassword
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/user/resetpassword", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /user/resetpassword
Sends a password reset request
This endpoint sends a password reset request to the currently authenticated user.
Example responses
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Password reset request sent successfully | None |
| 401 | Unauthorized | Unauthorized, user is not authenticated | None |
| 403 | Forbidden | Forbidden, user does not have the necessary permissions | None |
