AddStarCommandToControllerAsync

Adds a star command to a specific controller. Returns (The added star command with Args[0] and ProcedureIndex back-filled. For DirectProcedure commands, HgProcedureItems is also back-filled with one entry per created procedure.)

Overview of AddStarCommandToControllerAsync goes here.

Name Description
controller The controller to add the star command to
starCommand The star command to add. HgProcedureItems is serialised as part of the POST body (it is a property on HgStarCommandInfo ). The server’s AfterAdd hook reads the list and creates one HgProcedure per entry, using each entry’s Actions string as the step payload. When null or empty, procedures are still created but with empty Actions; step count is derived from Args[2]–Args[3].

Add Star Command To Controller Async

Example in C#

// Returns: HgStarCommandInfo
var hgStarCommandInfo = await client.AddStarCommandToControllerAsync(ControllerInfo controller, HgStarCommandInfo starCommand);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/starcommands \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.HgStarCommandInfo, Feenics.Keep.WebApi.Model",
                       "CommandCode":101,
                       "CmndCode":"10",
                       "ProcedureIndex":0,
                       "ManagerIndex":0,
                       "ManagerLevel":0,
                       "Args":[100,5,2,6],
                       "AuthorityFlag":4,
                       "AccessLevelIndex":-1,
                       "AccessDelay":-1,
                       "IdMode":0,
                       "AcrList":"1111111100000000000000000000000000000000000000000000000000000000",
                       "ObjectLinks":[{"Relation":"AccessLevel","LinkedObjectKey":"ACCESSLEVEL.KEY"}]
                   }'