Alarm Scripting - Add alarms to existing tags

I found another post that discussed writing to the child vs parent tag.

Script for adding tag alarm

I was able to write to a specific tag using the below code.

foo = system.tag.getConfiguration("[Alarming]Test/ER200_LIT21_TEST/bHAlm")[0]

foo['alarms'] = [
    {
    "name": "TEST ALARM",
    "enabled": True,
    "Priority": "Medium",
    "Mode": "Equal",
    "setpointA": 1.0,
    }
]

system.tag.configure("[Alarming]Test/ER200_LIT21_TEST/", foo)

Looks like I may have been over complicating it. I will tinker with the script from here.