For developers / Api documentation / Methods /

Edit Profile

Back

Endpoint

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

Headers

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

Params

Name Type Description
first_name string First name
last_name string Last name
timezone string See field Timezone.timezone (in model the model Timezone)

Request example

PUT https://api.repricer.online/v1/users/profile HTTP/1.1
Authorization: Bearer PUT YOUR TOKEN HERE
Content-Type: application/json
{
   "first_name": "David",
   "last_name": "Bowie",
   "timezone": "America/New_York"
}

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"
     },
     "account": {
         "id": 1,
         "name": "Test",
         "plan": {
             "id": 1,
             "name": "Lite",
             "price": "6.95",
             "limit_marketplaces": 1,
             "limit_listings": 50
         }
     }
 }
}