Reset Password (public)

POST /auth/reset-password

Reset Password will reset the password of the user

Headers

application/json

Body

Responses

  • 200 application/json

    Return a message to confirm the password was reset

    Hide response attribute Show response attribute object
  • 400 application/json

    Bad Request

    Hide response attribute Show response attribute object
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • 422 application/json

    Unprocessable Content

    Hide response attributes Show response attributes object
    • message string

      Error message.

    • errors object
      Hide errors attributes Show errors attributes object
      • field array[string]

        Error message details.

      • * array[string] Additional properties

        Error message details.

POST /auth/reset-password
curl \
 -X POST https://domain.tld/api/v2/auth/reset-password \
 -H "Content-Type: application/json" \
 -H "X-Popsell-Domain: example.com" \
 -d '{"email":"string","password":"string","token":"string"}'
Request examples
# Headers
X-Popsell-Domain: example.com

# Payload
{
  "email": "string",
  "password": "string",
  "token": "string"
}
Response examples (200)
{
  "message": "Password defined successfully"
}
Response examples (400)
{
  "message": "Bad Request."
}
Response examples (401)
{
  "message": "Unauthorized."
}
Response examples (422)
{
  "message": "field is required! (and 3 more error)",
  "errors": {
    "field": [
      "Error message details here"
    ],
    "additionalProperty1": [
      "Error message details here"
    ],
    "additionalProperty2": [
      "Error message details here"
    ]
  }
}