Note: see <a href="https://app.roll20.net/forum/post/1462045/help-wit" rel="nofollow">https://app.roll20.net/forum/post/1462045/help-wit</a>... for full details and work around. Seems that once you create an attribute object with the API you can not further manipulate that attribute without causing a javascript error. According to some in the thread refreshing the browser will allow the API to manipulate the attributes again but this didn't work for me. The thread mentioned above has a working patch for the createObj function which corrects the behavior.