# Predictive Outbound - Pre-test outbound task number addition

### Interface Description

In the created predictive task, the number in the task can be added through this interface, and the single added number should not exceed 10,000。

### request parameters

| parameter name | type | Is it necessary | illustrate |
| --- | --- | --- | --- |
| service | string | yes | App.Sip\_Yccall.TaskAdd |
| token | string | yes | The token obtained through the authorization interface |
| taskid | string | yes | Predictive task ID |
| telphone | string（JSON） | yes | Mobile phone number, preset call time (time stamp) (the current time stamp is the default, if the time is greater than this time, no call will be made), etc. example：\[{“phone”:18012345678,”time”:1500000000,”userid”:””,”memberid”:””,”chengshudu”:””,”customuuid”:””}\] |

### Example request interface（PHP）

    <?php
        $apiUrl = 'http://127.0.0.1:8080';
        $postFields = [
            'service'   => 'App.Sip_Yccall.TaskAdd',
            'token'     => 'ABCDEFG',
            'taskid'    => 'ADSFNIDJN',
            'telphone'  => '[{"phone":18012345678,"time":1500000000,"userid":"","memberid":"","chengshudu":"","customuuid":""}]'
        ];
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $apiUrl);
        curl_setopt($curl, CURLOPT_POST, 1);
        curl_setopt($curl, CURLOPT_POSTFIELDS, $postFields);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        $response = curl_exec($curl);
        $curlError = curl_error($curl);
        curl_close($curl);
        var_dump($response);
    ?>
    

### return data structure example

    {
        "ret": 200,
        "data": {
            "status": 0,
            "desc": "Additional success",
            "result": {
                "success": 7,
                "invaliddata": []
            },
            "reqtime": 1613962979,
            "rsptime": 1613962979
        },
        "msg": ""
    }
    

### Return parameter description

| parameter name | type | illustrate |
| --- | --- | --- |
| result | object | return result |
| success | int | Append the successful number |
| invaliddata | array | invalid data |