{
"name": "Test New Worksheet",
"sectionId": "",
"fields": [
{
"name": "text",
"alias": "",
"type": "Text",
"required": true,
"isTitle": 1
},
{
"name": "numerical",
"alias": "",
"type": "Number",
"precision": 2,
"required": true
},
{
"name": "radio",
"alias": "",
"type": "SingleSelect",
"options": [
{
"value": "Option Name 1",
"index": 1
},
{
"value": "Option Name 2",
"index": 2
}
],
"required": true
},
{
"name": "multiple choices",
"alias": "",
"type": "MultipleSelect",
"options": [
{
"value": "Option Name 1",
"index": 1
},
{
"value": "Option Name 2",
"index": 2
},
{
"value": "Option Name 3",
"index": 3
}
],
"required": true
},
{
"name": "Time-hour",
"alias": "",
"type": "Time",
"required": true,
"subType": 1
},
{
"name": "Time-Hours, Seconds and Seconds",
"alias": "",
"type": "Time",
"required": true,
"subType": 6
},
{
"name": "Member-Single Choice",
"type": 26,
"alias": "",
"subType": 0,
"required": true
},
{
"name": "Member-Multiple Choice",
"type": "Collaborator",
"alias": "",
"subType": 1,
"required": true
},
{
"name": "Annex",
"alias": "",
"type": "Attachment",
"required": true
},
{
"name": "date",
"alias": "",
"type": "Date",
"subType": 5,
"required": true
},
{
"name": "time",
"alias": "",
"type": "Date",
"subType": 1,
"required": true
},
{
"name": "Association record",
"alias": "",
"type": "Relation",
"subType": 1,
"showFields": [],
"dataSource": "",
"required": true
}
]
}
curl --location --request POST 'https://api.mingdao.com/v3/app/worksheets' \
--header 'HAP-Appkey: {{appkey}}' \
--header 'HAP-Sign: {{sign}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Test New Worksheet",
"sectionId": "",
"fields": [
{
"name": "text",
"alias": "",
"type": "Text",
"required": true,
"isTitle": 1
},
{
"name": "numerical",
"alias": "",
"type": "Number",
"precision": 2,
"required": true
},
{
"name": "radio",
"alias": "",
"type": "SingleSelect",
"options": [
{
"value": "Option Name 1",
"index": 1
},
{
"value": "Option Name 2",
"index": 2
}
],
"required": true
},
{
"name": "multiple choices",
"alias": "",
"type": "MultipleSelect",
"options": [
{
"value": "Option Name 1",
"index": 1
},
{
"value": "Option Name 2",
"index": 2
},
{
"value": "Option Name 3",
"index": 3
}
],
"required": true
},
{
"name": "Time-hour",
"alias": "",
"type": "Time",
"required": true,
"subType": 1
},
{
"name": "Time-Hours, Seconds and Seconds",
"alias": "",
"type": "Time",
"required": true,
"subType": 6
},
{
"name": "Member-Single Choice",
"type": 26,
"alias": "",
"subType": 0,
"required": true
},
{
"name": "Member-Multiple Choice",
"type": "Collaborator",
"alias": "",
"subType": 1,
"required": true
},
{
"name": "Annex",
"alias": "",
"type": "Attachment",
"required": true
},
{
"name": "date",
"alias": "",
"type": "Date",
"subType": 5,
"required": true
},
{
"name": "time",
"alias": "",
"type": "Date",
"subType": 1,
"required": true
},
{
"name": "Association record",
"alias": "",
"type": "Relation",
"subType": 1,
"showFields": [],
"dataSource": "",
"required": true
}
]
}'
{
"data": {
"worksheetId": ""
},
"success": true
}