Smart Home Family Management

Last Updated on : 2023-06-21 03:33:30download

Provide APIs for the management of families, rooms, and users.

Home Management

API Name URL
Add Home POST:/v1.0/home/create-home
Search Family GET:/v1.0/homes/{home_id}
Modify Home PUT:/v1.0/homes/{home_id}
Delete Family DELETE:/v1.0/homes/{home_id}
Query the list of devices under the family GET:/v1.0/homes/{home_id}/devices
Query Home Members GET:/v1.0/homes/{home_id}/members
Add Home Member POST:/v1.0/homes/{home_id}/members
Modify family member information PUT:/v1.0/homes/{home_id}/members/{uid}
Delete Home Member DELETE:/v1.0/homes/{home_id}/members/{uid}
Add Room POST:/v1.0/homes/{home_id}/room
Query Room List GET:/v1.0/homes/{home_id}/rooms
Delete Room DELETE:/v1.0/homes/{home_id}/rooms/{room_id}
Modify the room name PUT:/v1.0/homes/{home_id}/rooms/{room_id}
Query family room equipment GET:/v1.0/homes/{home_id}/rooms/{room_id}/devices
Query user family list GET:/v1.0/users/{uid}/homes
Add a device in the room POST:/v1.0/homes/{home_id}/rooms/{room_id}/devices
Modify Room Devices PUT:/v1.0/homes/{home_id}/rooms/{room_id}/devices
Delete the device in the room under the family DELETE:/v1.0/homes/{home_id}/rooms/{room_id}/devices

User Management

API Name URL
Sync Users POST:/v1.0/apps/{schema}/user
Get user information GET:/v1.0/users/{uid}/infos
Get user list GET:/v2.0/apps/{schema}/users
Undelete POST:/v1.0/users/{uid}/actions/cancel-delete
Pre-delete the user account POST:/v1.0/users/{uid}/actions/pre-delete
Associated user authorized login POST:/v1.0/iot-01/associated-users/actions/authorized-login

Application Management

API Name URL
Get App Details GET:/v1.0/apps/{schema}