Application API
  1. Options Set
Application API
  • Development Guide
  • Filter
  • Filter Demo
  • ErrorCode
  • app
    • Get Application Information
      GET
  • worksheet
    • Create Worksheet
      POST
    • Get worksheet structure information
      POST
    • Get List
      POST
    • Create Row Record
      POST
    • Batch Create Row Records
      POST
    • Get Row Record Details
      GET
    • Get row record details
      POST
    • Update Row Record Details
      POST
    • Batch Update Row Record Details
      POST
    • Delete Row Record
      POST
    • Get associated record
      POST
    • Get Record Share Link
      POST
    • Get total row count of worksheet
      POST
    • Get Row Record Log
      POST
  • Application Role
    • Get Application Role List GET
      GET
    • Create Application Role
      POST
    • Delete Application Role
      POST
    • Add Application Role Member
      POST
    • Remove Application Role Member
      POST
    • Exit application
      POST
    • Get Role Details
      GET
  • Options Set
    • Add Option Set
      POST
    • Get Option Set
      POST
    • Edit Option Set
      POST
    • Delete Option Set
      DELETE
  • Get regional Information
    POST
  1. Options Set

Add Option Set

fromal
https://api.mingdao.com
fromal
https://api.mingdao.com
POST
/v1/open/app/createOptionSet
Create option set information
Data includes: option set name, option set information (option value, sorting, color, score)

Request

Body Params application/json
name
string 
required
Option set name
options
array [object {5}] 
required
Option Set
value
string 
required
Option value, no duplication allowed
index
string 
required
Option sort value : must be an integer, the smaller the value, the higher the priority
isDeleted
string 
required
Has this option been removed ?
color
string 
required
Color value : effective when colorful is true , reference values #C0E6FC , #C3F2F2 , #00C345 , #FAD714 , #FF9300 , #F52222 , #EB2F96 , #7500EA , #2D46C4 , #484848 , #C9E6FC , #C3F2F2
score
string 
required
Score, effective when enableScore is true , decimals and positive and negative values are allowed
colorful
boolean 
required
Enable color
enableScore
boolean 
required
Enable points
Example
{
    "appKey": "5004e1f1c103fc82",
    "sign": "MWQzYWJiNTNlYzZmNjZhNTA1NTExMGZhNzEyMjU3ZTMzM2Q2YWFmZWJkMTZjMWM1NTRjNDZiODUwNjc5OTUzNg==",
    "name": " Test Option Set ",
    "options": [
        {
            "value": " Passed ",
            "index": "1",
            "isDeleted": "false",
            "color": "#C3F2F2",
            "score": "1"
        },
        {
            "value": " Not passed ",
            "index": 1,
            "isDeleted": false,
            "color": "red",
            "score": 1.5
        }
    ],
    "colorful": false,
    "enableScore": false
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mingdao.com/v1/open/app/createOptionSet' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appKey": "5004e1f1c103fc82",
    "sign": "MWQzYWJiNTNlYzZmNjZhNTA1NTExMGZhNzEyMjU3ZTMzM2Q2YWFmZWJkMTZjMWM1NTRjNDZiODUwNjc5OTUzNg==",
    "name": " Test Option Set ",
    "options": [
        {
            "value": " Passed ",
            "index": "1",
            "isDeleted": "false",
            "color": "#C3F2F2",
            "score": "1"
        },
        {
            "value": " Not passed ",
            "index": 1,
            "isDeleted": false,
            "color": "red",
            "score": 1.5
        }
    ],
    "colorful": false,
    "enableScore": false
}'

Responses

🟢200成功
application/json
Body
success
boolean 
required
code
integer 
required
msg
string 
required
data
object 
required
collectionId
string 
required
Option set ID
Example
{
    "success": true,
    "code": 0,
    "msg": "string",
    "data": {
        "collectionId": "string"
    }
}
🟠401没有权限
🟠404记录不存在
Modified at 2025-04-07 02:45:08
Previous
Get Role Details
Next
Get Option Set
Built with