dambel

دمبل

shevron
ورود | ثبت نام

API Docs / users / update



PUT /api/v1/users/{user-id}

Update the information of a specific user.


Permissions

PermissionDescription
users.update_anyUpdate any user as an admin

Request Body Parameters

NameTypeRequiredDescription
first_namestringNoFirst name (max 255)
last_namestringNoLast name (max 255)
emailstringNoEmail (max 255, unique)
phonestringNoPhone number (max 255, unique)
usernamestringNoUsername (max 255, unique)
heightintegerNoUser's height in CM
birth_datedateNoUser's birth date
passwordstringNoNew password (will be hashed and saved)

All parameters are optional. If omitted, they will not be updated. Required fields cannot be set to null.


Response

200 OK

{
  "user": {<user resource>}
}

Error Responses


footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube