AddLocalAreaToControllerAsync

Creates a new local area for the specified controller. The server rejects it with FailedOutcomeException while the controller is linked to a GlobalArea; the user must unlink the GlobalArea first. Returns (Task)

Create and register the Local Area to the designated Controller.

Name Description
controller The controller to add the local area to.
localArea The local area information to create. If IsGlobalArea is null, the API applies its default for new areas.

Add Local Area To Controller Async

Example in C#

// Returns: LocalAreaInfo
var localAreaInfo = await client.AddLocalAreaToControllerAsync(ControllerInfo controller, LocalAreaInfo localArea);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/localareas \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.LocalAreaInfo, Feenics.Keep.WebApi.Model",
                       "Index":0,
                       "IsMultipleOccupancy":false,
                       "MaximumOccupancy":0,
                       "LogCountUp":0,
                       "LogCountDown":0,
                       "IsAirLock":false,
                       "IsEnabled":false,
                       "Occupancy":0,
                       "Key":null,
                       "CommonName":null,
                       "InFolderHref":null,
                       "InFolderKey":null,
                       "Links":[],
                       "ObjectLinks":null,
                       "Metadata":null,
                       "Notes":null,
                       "Tags":null,
                       "Monikers":null,
                       "Href":null
                   }'