Update password

Update User password by ID

PATCH https://biometridon.polygon.pt/api/users/:id/password

This endpoint allows you to update the user password field.

Path Parameters

Name
Type
Description

id

string

ID of the user to get

Headers

Name
Type
Description

Content-Type

string

application/json

Authorization

string

Authentication user token

Request Body

Name
Type
Description

oldPassword

string

Old password

password

string

New password

{
  "data": {
    "email": "user@polygon.pt",
    "firstName": "User",
    "lastName": "Tool",
    "clientId": "5f089930ae1e08524034ec9b",
    "roles": [
      "5f06dd360d2a954da80c0990"
    ],
    "active": true,
    "isMaster": false,
    "created_at": "2020-07-10T16:40:24.828Z",
    "updated_at": "2020-07-10T16:40:24.828Z",
    "id": "5f0899f8b9f874452cd5ff22",
    "name": "User Tool"
  },
  "meta": {
    "message": "User updated with success."
  },
  "status": true
}

Update my User password

PATCH https://biometridon.polygon.pt/api/users/password

This endpoint allows you to update the authenticathed user password field.

Headers

Name
Type
Description

Content-Type

string

application/json

Authorization

string

Authentication user token

Request Body

Name
Type
Description

oldPassword

string

Old password

password

string

New password

{
  "data": {
    "email": "user@polygon.pt",
    "firstName": "User",
    "lastName": "Tool",
    "clientId": "5f089930ae1e08524034ec9b",
    "roles": [
      "5f06dd360d2a954da80c0990"
    ],
    "active": true,
    "isMaster": false,
    "created_at": "2020-07-10T16:40:24.828Z",
    "updated_at": "2020-07-10T16:40:24.828Z",
    "id": "5f0899f8b9f874452cd5ff22",
    "name": "User Tool"
  },
  "meta": {
    "message": "User updated with success."
  },
  "status": true
}

Last updated

Was this helpful?