Contact Us
Log In

Modify Device Members

Last Updated on : 2023-06-20 15:38:08download

Modify the information about device members.

API address

PUT: /v1.0/devices/{device_id}/users/{user_id}

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.
user_idStringuritrueThe user ID.

Description of body

Parameter nameTypeINRequiredDescription
sexInteger trueGender.
  • 1: male.
  • 2: female.
birthdayLong falseDate of birth (day, month, year).
heightInteger falseHeight (cm).
weightInteger falseWeight (g).

Return parameter

Parameter nameTypeDescription
resultBooleanThe operation result.

Request example

PUT: /v1.0/devices/vdevo15345926009****/users/xxx
  "nick_name": "Jerry",
  "sex": 2

Return example

    "result": true,
    "t": 1593843316481,
    "success": true

Error code

For more information, see error code.