For the complete documentation index, see llms.txt. This page is also available as Markdown.

Behavior Script

API to manage automation scripts.

List behavior script.

get

List all available behavior script resources.

Authorizations
hue-application-keystringRequired
Responses
200

BehaviorScript Success Response

application/json
get/clip/v2/resource/behavior_script
GET /clip/v2/resource/behavior_script HTTP/1.1
Host: 192.168.1.0
hue-application-key: YOUR_API_KEY
Accept: */*
{
  "errors": [
    {
      "description": "text"
    }
  ],
  "data": [
    {
      "type": "light",
      "id": "3883f8bf-30a3-445b-ac06-b047d50599df",
      "id_v1": "/lights/8",
      "description": "text",
      "configuration_schema": {},
      "trigger_schema": {},
      "state_schema": {},
      "version": "text",
      "metadata": {
        "name": "text",
        "category": "text"
      }
    }
  ]
}

Get behavior script.

get

Get details of a single behavior script resource from its given {behaviorScriptId}.

Authorizations
hue-application-keystringRequired
Path parameters
behaviorScriptIdstringRequired

ID of the behavior script

Responses
200

BehaviorScript Success Response

application/json
get/clip/v2/resource/behavior_script/{behaviorScriptId}
GET /clip/v2/resource/behavior_script/{behaviorScriptId} HTTP/1.1
Host: 192.168.1.0
hue-application-key: YOUR_API_KEY
Accept: */*
{
  "errors": [
    {
      "description": "text"
    }
  ],
  "data": [
    {
      "type": "light",
      "id": "3883f8bf-30a3-445b-ac06-b047d50599df",
      "id_v1": "/lights/8",
      "description": "text",
      "configuration_schema": {},
      "trigger_schema": {},
      "state_schema": {},
      "version": "text",
      "metadata": {
        "name": "text",
        "category": "text"
      }
    }
  ]
}

Update behavior script.

put

Update a single behavior script resource from its given {behaviorScriptId}.

Authorizations
hue-application-keystringRequired
Path parameters
behaviorScriptIdstringRequired

ID of the behavior script

Body
typestringOptional

Type of the supported resources (always behavior_script here)

Responses
200

Success

application/json
put/clip/v2/resource/behavior_script/{behaviorScriptId}
PUT /clip/v2/resource/behavior_script/{behaviorScriptId} HTTP/1.1
Host: 192.168.1.0
hue-application-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "type": "text"
}
{
  "errors": [
    {
      "description": "text"
    }
  ],
  "data": [
    {
      "rid": "42edd1f5-9538-4180-9ced-2d9e07f26d0f",
      "rtype": "device"
    }
  ]
}

Last updated

Was this helpful?