Back to All

Image creation API

By invoking the image creation API for a color image, if I set the parameter "replace_existing" to true, are primary style images deleted?
For example:
POST | https://api.jooraccess.com/v2/style-number/00123/ST1234566/image/?filename=abc123-1S.jpg&color_code=001&swatch=true&display_order=1&replace_existing=true

Can you confirm that for a color it is possible to upload only one image, which may or may not be a swatch?
For a color, if I load a swatch image with replace_existing parameter set to false after loading an image (even non-swatch), does the swatch image replace the previous one or do I get an error?