Rooms
Create a Room
Changed onCreate a Room for a given Location.
post/locations/{locationId}/rooms
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesw:locations:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
allowedstring
If set to true, the response may contain the allowed list property. Note that setting this to true may significantly slow the response time. If you are creating a room for your own account, then you know you will have all these permissions and can avoid the trouble of passing in this parameter.
Request body
Example request
{
"name": "Living Room",
"indoorMap": {
"mapRoomId": "6b3d1909-1e1c-43ec-adc2-5f941de4fbf8",
"color": "some color code"
}
}Response
Created successfully.
Example response
{
"roomId": "bdd8a15f-33d4-41fc-b33c-75ce85e99d24",
"locationId": "6b3d1909-1e1c-43ec-adc2-5f941de4fbf9",
"name": "Living Room",
"created": 1547920800,
"lastModified": 1548007200,
"indoorMap": {
"mapRoomId": "6b3d1909-1e1c-43ec-adc2-5f941de4fbf8",
"color": "some color code"
}
}Changes
- info
added the new optional
queryrequest parameterallowed
- info