Control a single curtain, all curtains in a room or all curtains in a space


POST /v4/sites/{siteId}/apply
Parameters
siteId
uuid required
-
Open or close a single curtain

This request will open or close all curtains which are attached to the targetObjectId with one of the actions: curtainOpen, curtainClose.

Headers
Content-Type application/json
Accept application/json
Authorization Bearer `Your Access Token`
{
    "action": "curtainOpen",
    "targetObjectId": "83d4e8a9-abaa-47ef-9647-c0e4482c36c2"
}
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "targetObjectId": {
      "type": "string"
    },
    "action": {
      "enum": [
        "curtainOpen",
        "curtainClose"
      ]
    }
  },
  "required": [
    "targetObjectId",
    "action"
  ]
}

Response 204

Open or close all curtains in a room

This request will open or close all curtains which are contained in the room specified by targetRoomId with one of the actions: curtainOpen, curtainClose.

Headers
Content-Type application/json
Accept application/json
Authorization Bearer `Your Access Token`
{
    "action": "curtainOpen",
    "targetRoomId": "83d4e8a9-abaa-47ef-9647-c0e4482c36c2"
}
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "targetRoomId": {
      "type": "string"
    },
    "action": {
      "enum": [
        "curtainOpen",
        "curtainClose"
      ]
    }
  },
  "required": [
    "targetRoomId",
    "action"
  ]
}

Response 204

Open or close all curtains in a space

This request will open or close all curtains which are contained in the room specified by targetSpaceId with one of the actions: curtainOpen, curtainClose.

Headers
Content-Type application/json
Accept application/json
Authorization Bearer `Your Access Token`
{
    "action": "curtainClose",
    "targetSpaceId": "83d4e8a9-abaa-47ef-9647-c0e4482c36c2"
}
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "targetSpaceId": {
      "type": "string"
    },
    "action": {
      "enum": [
        "curtainOpen",
        "curtainClose"
      ]
    }
  },
  "required": [
    "targetSpaceId",
    "action"
  ]
}

Response 204