This endpoint will move all people in an area to the previous area they were marked in or, optionally, a specified area. If a specified area is given and people are unable to move to it, they will not be cleared. This includes: Sending an area cleared event for this area if all people are moved/ cleared. If able to, marking all people into the destination area, otherwise clearing them out of this area. Updating occupancy of all areas affected. Sending mercury setAreaOccupancy command for mercury controllers and ac setAreaCount command for acre controllers. Returns (Task)
Overview of MovePeopleInLocalAreaAsync goes here.
| Name | Description |
|---|---|
| localArea | reference to an existing Local Area that contains people that need to be moved. |
| toAreaOverride | (optional) area to move all people to. If supplied, all people will be marked in this area rather than their previous area. |
Example in C#
// Returns: nothing
await client.MovePeopleInLocalAreaAsync(LocalAreaInfo localArea, LocalAreaInfo toAreaOverride);
Example in CURL
curl -X PUT \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/localareas/LOCALAREA.KEY/move-people[/TOAREAOVERRIDE.KEY] \
-H 'Authorization: Bearer TOKEN_GOES_HERE'