Add Device Member

Last Updated on : 2023-12-07 03:33:58download

Add a device member.

API address

POST: /v1.0/devices/{device_id}/user

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.

Description of body

Parameter nameTypeINRequiredDescription
nick_nameString trueThe username.
sexInteger trueGender.
  • 1: male.
  • 2: female.
birthdayLong falseDate of birth (day, month, year).
heightInteger falseHeight (cm).
weightInteger falseWeight (g).
contactString falseThe contact information of the user.

Return parameter

Parameter nameTypeDescription
resultStringThe added user ID.

Request example

POST: /v1.0/devices/vdevo15345926009****/user
{
  "nick_name": "Tom",
  "sex": 1
}

Return example

{
    "result": "231231xxx",
    "t": 1592899848757,
    "success": true
}

Error code

For more information, see error code.