Juman Project
  1. Auth
Juman Project
  • Auth
    • register
      POST
    • login
      POST
    • forgot-password
      POST
    • reset-password
      POST
    • logout
      POST
  • Events
    • user register to event
      POST
    • get all events
      GET
    • get single event
      GET
    • create event
      POST
    • update event
      PUT
    • delete event
      DELETE
  • Courses
    • recorded course
      • create recorded course
      • get all recorded courses
      • get single recorded course
      • delete recorded course
      • update recorded course
      • book a recorded course
      • verify payment
    • in person course
      • create in-person courses
      • get all in-person courses
      • get single in-person course
      • delete in-person course
      • update in-person course
      • book an in-person course
      • verify payment
    • get all courses
      GET
    • get single course
      GET
    • update course
      PUT
  • Consultations
    • create consultation
      POST
    • book a consultation
      POST
    • verify payment
      GET
    • all payments
      GET
    • payments history (for single user)
      GET
    • Get Available Consultations
      GET
  • Users
    • get user
      GET
    • me
      GET
    • update user
      PUT
    • update user password
      PUT
    • get all users
      GET
    • delete user
      DELETE
    • get user content
      GET
  • Contact
    • contact form
  • FAQs
    • get all faqs (admin)
    • get all faqs (users)
    • create faq
    • update faq
    • delete faq
    • toggle status
  • Podcasts
    • get all podcasts
    • create podcast
    • update podcast
    • delete podcast
    • get all podcasts (admin)
    • get single podcast
    • get single podcast
  1. Auth

reset-password

POST
/api/auth/reset-password
The POST /api/auth/reset-password endpoint is used to reset the password for a user account.

Request Body#

resetCode (string): The reset code sent to the user's email for verification.
password (string): The new password to be set for the user account.
confirmPassword (string): The new password to be confirmed for the user account.

Response#

The response to this request will include:
status (string): Indicates the status of the password reset operation.
message (string): Provides additional information about the password reset process.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/auth/reset-password' \
--header 'Content-Type: application/json' \
--data-raw '{
  "resetCode": "ce4eccb62c19364145f51bd0357c02e7dcd46fd89f41d340e201074f646ac454",
  "email": "abdullatif.jarkas1@gmail.com",
  "password": "123123123",
  "confirmPassword": "123123123"
}'
Response Response Example
{
    "status": "success",
    "message": "Password successfully updated."
}

Request

Body Params application/json

Examples

Responses

🟢200reset-password
application/json
Body

Modified at 2025-08-09 19:13:06
Previous
forgot-password
Next
logout
Built with