{
"workflow_template_id": 1,
"name": "workflow-test-1",
"auto_finish": 1,
"end_time": "2022-10-30 05:05:14+08:00",
"holiday_pause": 2,
"details": [
{
"callee": "+8612345678",
"platform": "platform-name",
"variables": {
"customer_name": "test-user1",
"borrow_total_money": "12000",
"borrow_money": "10000",
"due_date": "2022-10-10",
"borrowed_date": "2022-10-08",
"extra_a": "hello world",
"gender": "male",
"comments": "comments "
},
"caseid": "test-caseid"
}
]
}
curl --location --request POST 'https://api.airudder.com/service/cloud/workflow/createinstance' \
--header 'Authorization;' \
--header 'User-Agent: Airudder' \
--header 'Content-Type: application/json' \
--data-raw '{
"workflow_template_id": 1,
"name": "workflow-test-1",
"auto_finish": 1,
"end_time": "2022-10-30 05:05:14+08:00",
"holiday_pause": 2,
"details": [
{
"callee": "+8612345678",
"platform": "platform-name",
"variables": {
"customer_name": "test-user1",
"borrow_total_money": "12000",
"borrow_money": "10000",
"due_date": "2022-10-10",
"borrowed_date": "2022-10-08",
"extra_a": "hello world",
"gender": "male",
"comments": "comments "
},
"caseid": "test-caseid"
}
]
}'
{
"data": {
"workflow_id": "f3696213b60c4debae668f4defd1e60d"
},
"status": "OK",
"code": 200
}