{
"name": "Test option set",
"options": [
{
"value": "already through the",
"index": "1",
"color": "#C3F2F2",
"score": "1"
},
{
"value": "not through",
"index": 1,
"color": "red",
"score": 1.5
}
],
"colorful": false,
"enableScore": false
}
curl --location --request POST 'https://api.mingdao.com/v3/app/optionsets' \
--header 'HAP-Appkey: {{appkey}}' \
--header 'HAP-Sign: {{sign}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Test option set",
"options": [
{
"value": "already through the",
"index": "1",
"color": "#C3F2F2",
"score": "1"
},
{
"value": "not through",
"index": 1,
"color": "red",
"score": 1.5
}
],
"colorful": false,
"enableScore": false
}'
{
"data": {
"optionsetId": ""
},
"success": true
}