AddPeripheralToReaderAsync

Adds a peripheral to a folder. Returns (Task)

Create a Mercury Peripheral device that is connected to the designated Reader.

Name Description
reader The reader to add the peripheral to
peripheralType The type of peripheral (Rex, Contact, Strike, Slave)
item The peripheral information to create

Add Peripheral To Reader Async

Example in C#

// Returns: PeripheralInfo
var peripheralInfo = await client.AddPeripheralToReaderAsync(MercuryReaderInfo reader, ReaderPeripheralTypes peripheralType, MercuryPeripheralInfo item);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/peripherals/Strike \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.MercuryPeripheralInfo, Feenics.Keep.WebApi.Model",
                       "ControllerIndex":0,
                       "SioNumber":0,
                       "SioIndex":0,
                       "ControllerKey":null,
                       "ControllerCommonName":null,
                       "ControllerHref":null,
                       "Status":null,
                       "BacnetReadOnly":null,
                       "Key":null,
                       "CommonName":"PeripheralExampleFor_cUrl",
                       "InFolderHref":null,
                       "InFolderKey":null,
                       "Links":[],
                       "ObjectLinks":null,
                       "Metadata":null,
                       "Notes":null,
                       "Tags":null,
                       "Monikers":null,
                       "Href":null
                   }'