This needs to be the item code (i.e. from trading post or gw2spidy) not the wardrobe ID

To get wardrobe code go to your account wardrobe in-game, find the skin you want, type /wiki in chat, shift-click the icon in the wardrobe, hit enter and copy the skin # from the wiki page that appears. Alternatively, get the code from gw2wardrobe.com

Code: -

The original code was made in a JSFiddle by the GW2 Wikiuser Fam.