x912 API

x912 API

Hello,

How can i add user using the API ? Is there documentation on this ?

Thanks
All comments 4
    rachel 2024-06-19 16:24:51
    for example:
    {
        "target": "user",
        "action": "add",
        "data":
        {
            "item":
            [
                {
                    "UserID": "per3",
                    "PrivatePIN": "234557;1233",
                    "LiftFloorNum": "2;3;4",
                    "Name": "user3",
                    "ScheduleRelay": "1001-12",
                    "CardCode": "2342315;33221122",
                    "Building": "",
                    "Room": "",
                    "WebRelay": "0"
                }
            ]
        }
    }
    Example Return:
    {
        "retcode": 1,
        "action": "add",
        "message": "OK"
    }
    jgandon 2024-06-19 16:29:41
    Hi,

    Thank you for the answer.
    I finally found it.

    But for x912, you have to put "Shedule-Relay" instead of "ScheduleRelay" otherwise it doesn't work
    FlipTiM 2024-07-24 13:55:41
    Do you have any idea how to set RelayA or RelayB?
    rachel 2024-07-25 09:12:55
    api relay set
    Only POST method can be used for this function.
    Example Request:

    POST:
    {
        "target": "relay",
        "action": "set",
        "data" : {
                "Config.DoorSetting.RELAY.HoldDelayA": "8"
        }
    }


    Example Return:

    {
        "retcode": 0,
        "action": "set",
        "message": "OK"
    }
You have to log in before you can reply Login | Sign up