Reset Password (public)
Reset Password will reset the password of the user
Headers
-
The domain of the user
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"
]
}
}