Last Updated on : 2024-09-10 01:49:18
Add a home and rooms for a specified user.
Note: You can add only the home and leave the room blank.
POST: /v1.0/home/create-home
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
home | HomeObject | body | true | The home. |
rooms | List | body | false | The rooms. |
uid | String | body | true | The user ID. |
Description of home
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
name | String | home | true | The name of a home. |
geo_name | String | home | false | The geographical location of a home. |
lon | Double | home | false | The longitude of a home. |
lat | Double | home | false | The latitude of a home. |
Parameter name | Type | Description |
---|---|---|
result | Long | The home ID. |
POST: /v1.0/home/create-home
{
"uid": "ay1528964101460qL***",
"home": {
"geo_name": "Hangzhou Grand Center",
"name": "My Home",
"lat": 30.16,
"lon": 120.5
},
"rooms": [
"Kitchen",
"Bathroom"
]
}
{
"result": 3182004,
"t": 1540615024283,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback