# Import

## Function

This API is used to NVR import IPC configuration files.

## Request Message

### Parameter Description

##### Table 1

Parameter | Range | Type | Description
--- | --- | --- | ---
channel_info |  | object | Total channel information object, see Table 2 for details.
base_secondary_authentication |  | object | encrypted authentication object, see base_secondary_authentication information table for details information.

##### Table 2

Parameter | Range | Type | Description
--- | --- | --- | ---
CH1 |  | object | A channel information object, see Table 3 for details.
... |  | object |
IP_CH1 |  | object |
... |  | object |
WIFI_CH1 |  | object |
... |  | object |

##### Table 3

Parameter | Range | Type | Description
--- | --- | --- | ---
ImportExportSwitch |  | bool | Parameter export and import switch. (This field is only used for IPC parameter export and import)
param |  | string | Base64 (this field is only used when importing parameters)

Sample:

    POST /API/IPCMaintaint/IPCParamManagement/Import HTTP/1.1

    {
        "version":"1.0",
        "data":
        {
            "base_secondary_authentication":
            {
                "seq":2,
                "cipher":"7RUcFX+UNep/faAvjE9k+ZcEwSl7WKIy2AS9YzDmRE8="
            },
            "channel_info":
            {
                "CH16":
                {
                    "ImportExportSwitch":true,
                    "param": " "
                }
            }
        }
    }

## Response Message

### Parameter Description

##### Table 4

Parameter | Range | Type | Description
--- | --- | --- | ---
state | "Success", "Failed" | string | The status of the IPC operation.

Sample:

    HTTP/1.1 200 OK
    Content-Type: application/json

    {
        "version":"1.0",
        "data":
        {
            "channel_info":
            {
                "CH1":
                {
                    "state": "Success"
                }
            }
        }
    }

## Error Code

See Response Messages Body and Common error_code for more information.