{
"name": "string",
"description": "string",
"trigger": {
"nodeAlias": "string",
"nodeId": "string",
"triggerType": "worksheet_event",
"name": "string",
"config": {
"worksheetId": "string",
"event": "add",
"triggerFields": [
"string"
],
"filter": {
"logic": "and",
"items": [
{}
]
},
"loopType": "hour",
"cron": "string",
"startTime": "string",
"endTime": "string",
"customCycle": {
"unit": "minute",
"interval": 1,
"weekdays": [
1
]
},
"dateFieldId": "string",
"executeTime": "string",
"offset": {
"days": 0,
"hours": 0,
"minutes": 0
},
"samplePayload": {
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}
},
"publish": true
}curl --location 'https://api.mingdao.com/v3/app/workflows' \
--header 'HAP-Appkey: {{appkey}}' \
--header 'HAP-Sign: {{sign}}' \
--header 'Content-Type: application/json' \
--data '{
"name": "string",
"description": "string",
"trigger": {
"nodeAlias": "string",
"nodeId": "string",
"triggerType": "worksheet_event",
"name": "string",
"config": {
"worksheetId": "string",
"event": "add",
"triggerFields": [
"string"
],
"filter": {
"logic": "and",
"items": [
{}
]
},
"loopType": "hour",
"cron": "string",
"startTime": "string",
"endTime": "string",
"customCycle": {
"unit": "minute",
"interval": 1,
"weekdays": [
1
]
},
"dateFieldId": "string",
"executeTime": "string",
"offset": {
"days": 0,
"hours": 0,
"minutes": 0
},
"samplePayload": {
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}
},
"publish": true
}'{
"success": true,
"data": {
"processId": "string",
"workflowId": "string",
"published": true,
"property1": "string",
"property2": "string"
},
"error_code": 0,
"error_msg": "string"
}