Control a sync device
PUT /clip/v2/resource/sync/sync_uuid
Change a sync device's settings, such as its input source, mode, brightness, or color preset. Send only the fields you want to change; omitted fields retain their current values.
Example request
json
{
"on": 1
}Parameters
| Field | Location | Type | Required | Description |
|---|---|---|---|---|
on | body | integer | Yes | On/off state. 0: off; 1: on. |
mode | body | integer | Yes | Mode. 0: video; 1: music; 2: game. |
frequency | body | integer | Yes | Intensity. 0: low; 1: medium; 2: high; 3: maximum. |
source | body | integer | Yes | Input source. 0: HDMI1; 1: HDMI2. |
brightness | body | integer | Yes | Brightness, from 1 to 100. |
color_config | body | integer | Yes | Selects the active preset: 1 uses color_config_1, 2 uses color_config_2, and so on. |
color_config_1 | body | ColorXY[] | Yes | Configuration 1. 1-5 colors. |
color_config_1[].x | body | integer | Yes | X coordinate |
color_config_1[].y | body | integer | Yes | Y coordinate |
color_config_2 | body | ColorXY[] | Yes | Configuration 2. 1-5 colors. |
color_config_2[].x | body | integer | Yes | X coordinate |
color_config_2[].y | body | integer | Yes | Y coordinate |
color_config_3 | body | ColorXY[] | Yes | Configuration 3. 1-5 colors. |
color_config_3[].x | body | integer | Yes | X coordinate |
color_config_3[].y | body | integer | Yes | Y coordinate |
color_config_4 | body | ColorXY[] | Yes | Configuration 4. 1-5 colors. |
color_config_4[].x | body | integer | Yes | X coordinate |
color_config_4[].y | body | integer | Yes | Y coordinate |
Example response
json
{
"code": 0,
"data": {
"arr": [],
"obj": {}
},
"msg": "success"
}Responses
| Status code | Meaning |
|---|---|
| 200 | OK |
Response fields
HTTP 200 OK
| Field | Type | Required | Description |
|---|---|---|---|
code | integer | Yes | Status code |
msg | string | Yes | Message |