Request
Body Params application/json
{
"name": "Updated option set",
"options": [
{
"key": "key1",
"value": "Updated option 1",
"index": 1,
"color": "#FF5722",
"score": 60
}
],
"enableColor": true,
"enableScore": true
}
Request Code Samples
curl --location --request PUT 'https://www.nocoly.com/v3/app/optionsets/' \
--header 'HAP-Appkey;' \
--header 'HAP-Sign;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Updated option set",
"options": [
{
"key": "key1",
"value": "Updated option 1",
"index": 1,
"color": "#FF5722",
"score": 60
}
],
"enableColor": true,
"enableScore": true
}'
Responses
application/json
Option set updated successfully
{
"data": {},
"success": true
}
Modified at 2026-03-30 07:15:12