
So in following the documentation, I got the url to the image that I'm trying to add via API, but it still throws this error: "ERROR: You cannot set the imgsrc or avatar of an object unless you use an image that is in your Roll20 Library. See the API documentation for more info." Here's the create section: var curPageId = findObjs({_type: "campaign"})[0].get("playerpageid"); var graphic = createObj('graphic', { name: name, _pageid: curPageId, imgsrc: "<a href="https://s3.amazonaws.com/files.d20.io/images/5356582/kSzAxQqNOBlRlEKPRwKlUg/thumb.png?1409327289" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/5356582/kSzAxQqNOBlRlEKPRwKlUg/thumb.png?1409327289</a>", layer: "objects" }); It must be something stupid, but I can't spot it... I have even re-uploaded the image just to make sure I wasn't smoking crack...