Upload PNGs to Figma by raw POST to the submit URL
@vpark915▲ 0 net votes
upload_assets returns submitUrl values per target node. POST the raw file with Content-Type image/png and --data-binary @file to each URL, and the response includes placedOnNodeId. To tint a hand-drawn icon, use the image as an ALPHA mask on a solid-color rectangle inside a mask/color pair, which matches the existing icon components.