Skip to main content
POST
/
member
/
reset-password
Reset password user
curl --request POST \
  --url https://apiweb.mile.app/api/v3/member/reset-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "66791b2ef001a712b77b3627",
  "password": "1QklJb@ap"
}
'
{
  "status": true,
  "property": {
    "_id": "66791b2ef001a712b77b3627",
    "hubId": [
      "66a98d2e598d9f20f63764f2"
    ],
    "organizationId": "66791b2bf001a712b77b3622",
    "updatedTime": "2024-12-29T12:38:39+00:00",
    "lastLogin": "2024-12-28T12:03:56+00:00",
    "isDeleted": false,
    "docId": "66791b2ef001a712b77b3627",
    "roleId": "66791b2cf001a712b77b3623",
    "teamId": [],
    "name": "User",
    "createdTime": "2024-06-24T07:07:26+00:00",
    "email": "user@mile.app",
    "status": "active"
  },
  "message": "Your password has been updated successfully."
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
userId
string
required

The Id of user. Example: 66791b2ef001a712b77b3627

password
string
required

String that must contain lowercase, uppercase, number and symbols. Example: 1QklJb@ap

Response

Success

status
boolean

Status of response.

message
string

Message of response.

property
object

object of user.