POST api/v1/WirelessTask/CreateWirelessTask

Request Information

URI Parameters

None.

Body Parameters

WirelessTask
NameDescriptionTypeAdditional information
WifiTaskID

integer

None.

_LockID

integer

None.

_WtCmd

string

None.

_TaskStateText

string

None.

_Door

Door

None.

Request Formats

application/json, text/json

Sample:
{
  "WifiTaskID": 1,
  "_LockID": 2,
  "_WtCmd": "sample string 3",
  "_TaskStateText": "sample string 4",
  "_Door": {
    "DoorID": 1,
    "_LockType": 1,
    "_LockNumber": 1,
    "_DoorName": "sample string 2",
    "_ST44Number": "sample string 3",
    "_DoorInfo": {
      "_OnlineStatus": 0,
      "_BatteryStatus": 0,
      "_DoorAlarm": 0,
      "_DoorState": 0,
      "_FwVersion": "sample string 1",
      "_SignalStrenght": 0
    },
    "_TimeTable": {
      "TimeTableID": 1,
      "_TTName": "sample string 2",
      "_TTDescription": "sample string 3",
      "_TimeZones": [
        {
          "TimezoneID": 1,
          "_TimeZoneNumber": 0,
          "_Description": "sample string 2",
          "_Shifts": [
            {
              "TimeShiftID": 1,
              "_TimeShiftNumber": 0,
              "_Enabled": 0,
              "_From": "sample string 2",
              "_To": "sample string 3",
              "_Week": {
                "_Mon": 0,
                "_Tue": 0,
                "_Wed": 0,
                "_Thu": 0,
                "_Fr": 0,
                "_Sat": 0,
                "_Sun": 0,
                "_Hol": 0,
                "_Sp": 0
              }
            },
            {
              "TimeShiftID": 1,
              "_TimeShiftNumber": 0,
              "_Enabled": 0,
              "_From": "sample string 2",
              "_To": "sample string 3",
              "_Week": {
                "_Mon": 0,
                "_Tue": 0,
                "_Wed": 0,
                "_Thu": 0,
                "_Fr": 0,
                "_Sat": 0,
                "_Sun": 0,
                "_Hol": 0,
                "_Sp": 0
              }
            }
          ]
        },
        {
          "TimezoneID": 1,
          "_TimeZoneNumber": 0,
          "_Description": "sample string 2",
          "_Shifts": [
            {
              "TimeShiftID": 1,
              "_TimeShiftNumber": 0,
              "_Enabled": 0,
              "_From": "sample string 2",
              "_To": "sample string 3",
              "_Week": {
                "_Mon": 0,
                "_Tue": 0,
                "_Wed": 0,
                "_Thu": 0,
                "_Fr": 0,
                "_Sat": 0,
                "_Sun": 0,
                "_Hol": 0,
                "_Sp": 0
              }
            },
            {
              "TimeShiftID": 1,
              "_TimeShiftNumber": 0,
              "_Enabled": 0,
              "_From": "sample string 2",
              "_To": "sample string 3",
              "_Week": {
                "_Mon": 0,
                "_Tue": 0,
                "_Wed": 0,
                "_Thu": 0,
                "_Fr": 0,
                "_Sat": 0,
                "_Sun": 0,
                "_Hol": 0,
                "_Sp": 0
              }
            }
          ]
        }
      ]
    },
    "_WeeklyProgram": {
      "WeeklyProgramID": 1,
      "_WeekProgramName": "sample string 2",
      "_ProgramTables": [
        {
          "DoorProgramID": 1,
          "_ProgramName": "sample string 2",
          "_Time": "2025-12-06T16:39:37.7473204+00:00",
          "_Week": {
            "_Mon": 0,
            "_Tue": 0,
            "_Wed": 0,
            "_Thu": 0,
            "_Fr": 0,
            "_Sat": 0,
            "_Sun": 0,
            "_Hol": 0,
            "_Sp": 0
          },
          "_Task": 1
        },
        {
          "DoorProgramID": 1,
          "_ProgramName": "sample string 2",
          "_Time": "2025-12-06T16:39:37.7473204+00:00",
          "_Week": {
            "_Mon": 0,
            "_Tue": 0,
            "_Wed": 0,
            "_Thu": 0,
            "_Fr": 0,
            "_Sat": 0,
            "_Sun": 0,
            "_Hol": 0,
            "_Sp": 0
          },
          "_Task": 1
        }
      ]
    },
    "_HwTemplate": {
      "HardwareTemplateID": 1,
      "_HwName": "sample string 2",
      "_Description": "sample string 3",
      "_DeviceType": 0,
      "_OpeningTime": 4,
      "_AdaOpeningTime": 5,
      "_FireRegulationTime": 6,
      "_EnableWireless": 0,
      "_EnableBle": 0,
      "_SetWirelessInRcvMode": 0,
      "_AllowRevalidation": 0,
      "_UsePrivacyAsDoorContact": 0,
      "_DoorContactIsReversed": 0,
      "_Buzzer": 0,
      "_ShowLowBatToGuest": 0,
      "_EnableFreePassageOnce": 0,
      "_EnableFreePassage": 0,
      "_CloseAfterReleaseLatch": 7,
      "_HardwareInputOutputs": [
        {
          "HardwareInputOutputID": 1,
          "_Macro": 2,
          "_ReverseLogic": true,
          "_State": 0,
          "_Input": 1,
          "_Output": 1,
          "ActionReactionNumber": 0
        },
        {
          "HardwareInputOutputID": 1,
          "_Macro": 2,
          "_ReverseLogic": true,
          "_State": 0,
          "_Input": 1,
          "_Output": 1,
          "ActionReactionNumber": 0
        }
      ]
    },
    "_AccessServices": [
      {
        "AccessServiceID": 1,
        "_Services": 1,
        "_ServiceName": "sample string 2"
      },
      {
        "AccessServiceID": 1,
        "_Services": 1,
        "_ServiceName": "sample string 2"
      }
    ]
  }
}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.