Request
Body Params  application/json
{
    "name": "Test option set",
    "options": [
        {
            "key": "1e49e111-1293-4abe-bf22-9a98b0da3670",
            "value": "already through the",
            "index": "0",
            "isDeleted": false,
            "color": "#C3F2F2",
            "score": 1
        },
        {
            "key": "92e6c4fd-b149-4f6f-a27c-5805f31ea6d2",
            "value": "not through",
            "index": 1,
            "isDeleted": false,
            "color": "red",
            "score": 1.5
        },
        {
            "key": "92e6c4fd-b149-4f6f-a27c-5805f31ea6d2",
            "value": "abandoned",
            "index": 2,
            "isDeleted": true,
            "color": "#F4893C",
            "score": 0
        }
    ],
    "enableColor": false,
    "enableScore": false
}
Request Code Samples
curl --location --request PUT '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": [
        {
            "key": "1e49e111-1293-4abe-bf22-9a98b0da3670",
            "value": "already through the",
            "index": "0",
            "isDeleted": false,
            "color": "#C3F2F2",
            "score": 1
        },
        {
            "key": "92e6c4fd-b149-4f6f-a27c-5805f31ea6d2",
            "value": "not through",
            "index": 1,
            "isDeleted": false,
            "color": "red",
            "score": 1.5
        },
        {
            "key": "92e6c4fd-b149-4f6f-a27c-5805f31ea6d2",
            "value": "abandoned",
            "index": 2,
            "isDeleted": true,
            "color": "#F4893C",
            "score": 0
        }
    ],
    "enableColor": false,
    "enableScore": false
}'
Responses
application/json {
    "success": true,
    "error_code": 1
}
Modified at 2025-09-05 07:03:09