For developers / Api documentation / Methods /

Change Password

Back

Endpoint

PUT https://api.repricer.online/v1/users/password

Headers

Name Type Description
Authorization string Authorization token.
Content-Type string application/json

Params

Name Type Description
password string Your current password
new_password string New password

Request example

PUT https://api.repricer.online/v1/users/password HTTP/1.1
Authorization: Bearer PUT YOUR TOKEN HERE
Content-Type: application/json
{
   "password": "HJdfyurii",
   "new_password": "88hzzpppk4r"
}

Return: User

Response example

HTTP/1.1 200 OK
Content-Type: application/json
{
     "status": 200,
     "data": {
         "id": 1,
         "first_name": "John",
         "last_name": "Smith",
         "email": "test@test.com",
         "timezone": {
             "country_code": "US",
             "timezone": "America\/New_York",
             "gmt_offset_winter": "-5.00",
             "gmt_offset_summer": "-4.00",
             "gmt_offset_raw": "-5.00"
         }
     }
}