SetGlobalAreaOccupancyAsync

Sets the absolute occupancy count on every Mercury controller linked to a GlobalArea. This changes the controller counts; it does not add or remove people from the GlobalArea’s occupancy links. Returns (Per-controller command publication results.)Exception Type: FailedOutcomeExceptionThe API rejects the request or could not publish to every linked controller.

Overview of SetGlobalAreaOccupancyAsync goes here.

Name Description
globalArea The GlobalArea whose linked controller counts should be set.
occupancy The absolute occupancy count; must be zero or greater.

Set Global Area Occupancy Async

Example in C#

// Returns: GlobalAreaSetOccupancyResponse
var globalAreaSetOccupancyResponse = await client.SetGlobalAreaOccupancyAsync(LocalAreaInfo globalArea, Int32 occupancy);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/globalareas/GLOBALAREA.KEY/occupancy \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '12'