# POST

## Function

Push event via the POST method.

## Request Message

Please refer to Get&Push > table 2.

Sample:

    POST /API/AlarmEvent/EventPush HTTP/1.1
    Host: 172.16.8.25:123
    Accept: */*
    Content-Type: application/json;charset=UTF-8
    Content-Length: 70323

    {
        "data": {
            "alarm_list": [
                {
                    "time": "2024-07-28T08:22:03Z+00:00",
                    "channel_alarm": [
                        {
                            "channel": "CH1",
                            "chn_alias": "",
                            "int_alarm": {
                                "take_alarm_snap": 0,
                                "time": "2024-07-28T08:22:03Z+00:00",
                                "alarm_val": true,
                                "int_subtype": "fd"
                            }
                        }
                    ]
                }
            ],
            "ai_snap_picture": {
                "FaceInfo": [
                    {
                        "Id": -1,
                        "GrpId": 4,
                        "Name": "",
                        "MD5": "",
                        "SnapId": 5,
                        "Type": 0,
                        "Score": 92,
                        "StartTime": 1722154921,
                        "EndTime": 1722154923,
                        "ModifyCnt": 214442944,
                        "Chn": 0,
                        "StrChn": "CH1",
                        "chn_alias": "",
                        "Sex": 0,
                        "Age": 20,
                        "Gender": -1,
                        "fAttrAge": -1,
                        "Expression": -1,
                        "GlassesType": -1,
                        "MouthMask": -1,
                        "Country": "",
                        "Nation": "",
                        "NativePlace": "",
                        "IdCode": "",
                        "Job": "",
                        "Phone": "",
                        "Email": "",
                        "Domicile": "",
                        "Remark": "",
                        "EnableChnAlarm": [],
                        "Image2": "/9j/4AAQS...",
                        "Image4": "/9j/4AAQS...",
                        "Feature": "BACgAOXX...",
                        "FtVersion": 10485764,
                        "VoicePromptsChn": [
                            255,
                            255,
                            255,
                            255,
                            255,
                            255,
                            255,
                            255,
                            255,
                            255,
                            255,
                            255
                        ],
                        "VoicePromptsSel": [
                            1,
                            0,
                            0,
                            0
                        ],
                        "VoicePromptsSpkSel": [
                            1,
                            0,
                            0,
                            0
                        ],
                        "VoicePromptsTm": [
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            },
                            {
                                "StartHour": 0,
                                "StartMinute": 0,
                                "StartSecond": 0,
                                "EndHour": 23,
                                "EndMinute": 59,
                                "EndSecond": 59
                            }
                        ]
                    }
                ]
            },
            "dev_net_info": [
                {
                    "phy": "eth1",
                    "ip": "172.16.10.169",
                    "mac": "002363A9B933"
                }
            ],
            "device_name": "c"
        }
    }