Modifying report creator type with Zotero JavaScript API

I have a report with 2 editors. Zotero 6 (maybe is different for newer releases) does not allow Editor as Creator type for Report items type. Either, Author or Series Editor or Contributor...
Then I try the next with the JavaScript API:
var itemID = 1443
var item = Zotero.Items.get(itemID);
let creators = item.getCreators();
for(let creator of creators){
creator.creatorTypeID = 10
}
item.setCreators(creators);
item.save();

Unfortunately, creator.creatorType becomes 8, so authors, instead of editors...

At some point I'll install Zotero 7 or 8, but meanwhile I wonder if these 2 issues happen yet, I mean:
1. Report item type does not allow editor as creator type
2. Modifying creator type through Javascript API is as "blocked" as through GUI.
Sign In or Register to comment.