---
# System prepended metadata

title: SOS api
tags: [綜合櫃台]

---

# SOS api
###### tags:  `綜合櫃台`
* 功用用於解除指定房號緊急狀態(sos、一氧化碳(co_one))
* api 會將pbx_dt 的sos、co_one 更改狀態，並記錄log至MODIFY_RF table裡
```json=
{
        "prg_id" : "W_SOS",
        "socket_id" : "p6m5HF8u85NACf-0AAAO",
        "athena_id" : 1,
        "ins_usr" : "cio",
        "session_id" : 36729501,
        "func_id" : "1010",
        "params" : {},
        "locale" : "zh_TW",
        "trans_log_id" : "20200227185833585",
        "mac" : "",
        "comp_cod" : "ZZATHENA",
        "hotel_cod" : "01",
        "server_ip" : "",
        "reve_code" : "W_SOS",
        "client_ip" : "",
        "upd_usr" : "cio",
        "user" : "cio",
        "table" : {
            "pbx_dt" : [ 
                {
                    "athena_id" : "1",
                    "upd_dat" : "2020/02/27 18:58:31",
                    
                    "action_cod" : "U",
                    "o_co_one" : "on",
                    "co_one" : "off",
                    "o_sos" : "on",
                    "sos" : "off",
                    "computer" : "",
                    "condition" : [ 
                        {
                            "field" : "athena_id",
                            "value" : "1",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "hotel_cod",
                            "value" : "01",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "room_nos",
                            "value" : "40001",
                            "operator" : "equal"
                        }
                    ],
                    
                    "hotel_cod" : "01",
                    "rmupd_dat" : "",
                    "upd_usr" : "cio",
                    "room_nos" : "40001"
                },
                {
                    "athena_id" : "1",
                    "upd_dat" : "2020/02/27 18:58:31",
                    
                    "action_cod" : "U",
                    "o_co_one" : "on",
                    "co_one" : "off",
                    "o_sos" : "off",
                    "sos" : "off",
                    "computer" : "",
                    "condition" : [ 
                        {
                            "field" : "athena_id",
                            "value" : "1",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "hotel_cod",
                            "value" : "01",
                            "operator" : "equal"
                        }, 
                        {
                            "field" : "room_nos",
                            "value" : "40002",
                            "operator" : "equal"
                        }
                    ],
                    
                    "hotel_cod" : "01",
                    "rmupd_dat" : "",
                    "upd_usr" : "cio",
                    "room_nos" : "40002"
                }
            ]
        },
        "event_time" : "2020-02-27T18:58:31+08:00"
    }
```
