reset_password.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. operationId: userResetPassword
  2. summary: Reset Password
  3. security:
  4. - UserAuth: []
  5. description: Reset the user password
  6. tags: [User]
  7. requestBody:
  8. content:
  9. application/json:
  10. schema:
  11. type: object
  12. required:
  13. - user_id
  14. - token
  15. - password
  16. - confirm_password
  17. properties:
  18. user_id:
  19. type: string
  20. format: uuid
  21. description: User ID, provided in URL
  22. example: 019e27f6-8898-7e4d-9dd7-93ce0e00cae0
  23. token:
  24. type: string
  25. format: uuid
  26. description: Unique user token, provided in URL
  27. example: 081e4b9b-37f4-46d8-97e3-303817399fea
  28. password:
  29. type: string
  30. description: New user password
  31. example: password123
  32. confirm_password:
  33. type: string
  34. description: Confirmation password
  35. example: password123
  36. responses:
  37. "200":
  38. description: "Password reset (always returns '{success: true}')"
  39. content:
  40. application/json:
  41. schema:
  42. type: object
  43. properties:
  44. success:
  45. type: boolean
  46. "401":
  47. $ref: "#/components/responses/401"
  48. "403":
  49. $ref: "#/components/responses/403"
  50. "500":
  51. $ref: "#/components/responses/500"