{
"TaskName": "test-apitest-001",
"RobotID": "e9f60ec4e5f1721c7992dc882767eb19",
"SIPLine": "ID_PHONE_HK_LINE",
"ScheduleStartTime": "2023-03-31 20:00:20",
"ScheduleEndTime": "2023-03-31 23:19:20",
"StartImmediately": true,
"RepeatNumber": 1,
"RepeatInterval": 10,
"RobotMethod": "single",
"Type": "promotion",
"Perform": 1,
"Details": [
{
"Customer": "Customer-user1",
"Mobile": "+6212345678",
"Platform": "AIRUDDER",
"Comments":"Comments",
"Gender": "male",
"ExtraA": "ExtraA"
}
]
}
curl --location --request POST 'https://api.airudder.com/service/cloud/v2/task' \
--header 'Authorization;' \
--header 'User-Agent: Airudder' \
--header 'Content-Type: application/json' \
--data-raw '{
"TaskName": "test-apitest-001",
"RobotID": "e9f60ec4e5f1721c7992dc882767eb19",
"SIPLine": "ID_PHONE_HK_LINE",
"ScheduleStartTime": "2023-03-31 20:00:20",
"ScheduleEndTime": "2023-03-31 23:19:20",
"StartImmediately": true,
"RepeatNumber": 1,
"RepeatInterval": 10,
"RobotMethod": "single",
"Type": "promotion",
"Perform": 1,
"Details": [
{
"Customer": "Customer-user1",
"Mobile": "+6212345678",
"Platform": "AIRUDDER",
"Comments":"Comments",
"Gender": "male",
"ExtraA": "ExtraA"
}
]
}'
{
"data": {
"TaskID": "c3b6b04cd7f8d2b182d3fd20eed3d144",
"detail_error_list": [
{
"field": "Details[1]",
"msg": "Country Code Error: 13016111",
"comments": "C12345567 "
}
]
},
"status": "OK",
"code": 200
}