UpdateControllerStatusAsync

Updates the status of a controller. Returns (Task)

Adjust the status of the designated Controller.

Name Description
controller The controller to update
status The status information to set
occurredOn Optional timestamp for when the status change occurred

Update Controller Status Async

Example in C#

// Returns: nothing
await client.UpdateControllerStatusAsync(ControllerInfo controller, ControllerStatusItem status, DateTime occurredOn);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.ControllerStatusItem, Feenics.Keep.WebApi.Model",
                       "IsTampered":true,
                       "IsFaulted":true,
                       "IsBatteryLow":true,
                       "IsOnline":true,
                       "IsUpdating":true
                   }'