Modify family member information

Last Updated on : 2023-06-01 06:20:13download

Used to set administrator or non-administrative role permissions for family members.

API address

PUT: /v1.0/homes/{home_id}/members/{uid}

Request parameter

Parameter name Type IN Required Description
home_id Long uri true Family ID
uid String uri true User ID

Description of body

Parameter name Type IN Required Description
admin Boolean true Set family member administrator permissions.
  • true: administrator
  • false: non-administrator

Return parameter

Parameter name Type Description
result Boolean

Request example

PUT: /v1.0/homes/31****/members/ay15309353754999****
{
  "admin": false
}

Return example

true

Error code

For more information, see error code.