POST api/v1/HardwareTemplate/CreateHwTemplate

Request Information

URI Parameters

None.

Body Parameters

HardwareTemplate
NameDescriptionTypeAdditional information
HardwareTemplateID

integer

None.

_HwName

string

None.

_Description

string

None.

_DeviceType

DEVICES

None.

_OpeningTime

integer

None.

_AdaOpeningTime

integer

None.

_FireRegulationTime

integer

None.

_EnableWireless

FEATURE

None.

_EnableBle

FEATURE

None.

_SetWirelessInRcvMode

FEATURE

None.

_AllowRevalidation

FEATURE

None.

_UsePrivacyAsDoorContact

FEATURE

None.

_DoorContactIsReversed

FEATURE

None.

_Buzzer

FEATURE

None.

_ShowLowBatToGuest

FEATURE

None.

_EnableFreePassageOnce

FEATURE

None.

_EnableFreePassage

FEATURE

None.

_CloseAfterReleaseLatch

integer

None.

_HardwareInputOutputs

Collection of HardwareInputOutput

None.

Request Formats

application/json, text/json

Sample:
{
  "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
    }
  ]
}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.