CreateProceduresForStarCommandAsync

Creates (or recreates) the HgProcedure records for an existing star command based on its Args[2]/Args[3] range. Each procedure is created with an empty Actions field if the procedures action property list is empty and an ObjectLink back to the star command. Use this after a resync to restore procedures that were deleted from the controller. Returns the updated star command with Args[0] and ProcedureIndex back-filled. Returns (The updated star command with procedure fields populated)

Overview of CreateProceduresForStarCommandAsync goes here.

Name Description
starCommand The star command to create procedures for. When HgProcedureItems is non-empty, the list is posted as the JSON body — a JSON array of HgProcedureInfo objects, each carrying an Actions string for that step. When null or empty, a bodyless POST is sent and the server creates empty-action procedures using the stored Args[2]/Args[3] step range.

Create Procedures For Star Command Async

Example in C#

// Returns: HgStarCommandInfo
var hgStarCommandInfo = await client.CreateProceduresForStarCommandAsync(HgStarCommandInfo starCommand);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/starcommands/STARCOMMAND.KEY/procedures \
               -H 'Authorization: Bearer TOKEN_GOES_HERE'