DownstreamStatusItem

Class DownstreamStatusItem.

This is where the status of the downstream is maintained.

DownstreamStatusItem Properties

DeviceStatusItem -> DownstreamStatusItem

DownstreamStatusItem -> AscDownstreamStatusItem -> AssaAbloyDsrStatusItem

Field Type Inherited from Description
ConcurrencyVersion Nullable<Int64> DeviceStatusItem Concurrency version for optimistic concurrency control.
DisplayLevel String DeviceStatusItem Gets or sets the display level for this item, typically used to indicate visual priority, severity, or categorization in the user interface (e.g., Info, Warning, Critical).
DisplayStatus String DeviceStatusItem Gets or sets the display-friendly status text for the device. This is typically used for UI representation and may differ from internal status codes. [BsonIgnoreIfDefault] to avoid reading the value.
Key String DeviceStatusItem Device ID of the device hosting the status. This is provided to link the status to the device.
LastUpdated Nullable<DateTime> DeviceStatusItem Last update time in UTC. If null, the current time will be used.
LogId Nullable<Int64> DeviceStatusItem The log ID is provided by the smart controller (AUP devices) with every log event. So if the device status is being updated as part of processing a log event, the log ID can be used to correlate the status update with the original log event and gives the order of events. (Don’t override the status with an older logId.)
CommunicationMessage String DownstreamStatusItem Gets or sets the communication message.
IsOnline Nullable<Boolean> DownstreamStatusItem Gets or sets a value indicating whether this device is online.Possible Values (null, true, false)
IsPowered Nullable<Boolean> DownstreamStatusItem Gets or sets a value indicating whether this device is powered.Possible Values (null, true, false)
IsTampered Nullable<Boolean> DownstreamStatusItem Gets or sets a value indicating whether this device is tampered.Possible Values (null, true, false)

JSON Structure of DownstreamStatusItem

{
   "ConcurrencyVersion"	:	"Nullable\<Int64\>",
   "DisplayLevel"	:	"String",
   "DisplayStatus"	:	"String",
   "Key"	:	"String",
   "LastUpdated"	:	"Nullable\<DateTime\>",
   "LogId"	:	"Nullable\<Int64\>",
   "CommunicationMessage"	:	"String",
   "IsOnline"	:	"Nullable\<Boolean\>",
   "IsPowered"	:	"Nullable\<Boolean\>",
   "IsTampered"	:	"Nullable\<Boolean\>"
}

Update Downstream Status Async

Example in C#

// Returns: Boolean
var item = await client.UpdateDownstreamStatusAsync(MercuryDownstreamInfo downstream, DownstreamStatusItem status);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.DownstreamStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'
            

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.AscDownstreamStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'
            

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.AssaAbloyDsrStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'
            

Update Downstream Status Async

Example in C#

// Returns: nothing
await client.UpdateDownstreamStatusAsync(AscDownstreamInfo downstream, AscDownstreamStatusItem status);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.DownstreamStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'
            

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.AscDownstreamStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'
            

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.AssaAbloyDsrStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'
            

Update Downstream Status Async

Example in C#

// Returns: nothing
await client.UpdateDownstreamStatusAsync(AssaAbloyDsrInfo downstream, AssaAbloyDsrStatusItem status);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.DownstreamStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'
            

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.AscDownstreamStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'
            

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.AssaAbloyDsrStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'