Recently we have problems with “uploading” images while creating a new collection item via api. We use the following endpoint: https://api.webflow.com/collections/ITEMID/items with a payload somewhat looking like that
Now the image attribute is an image field type and we get back from the webflow api
BadRequestError: Request is malformed: Remote image failed to import: Invalid data
But as you can see, the image is available and accessable https://storage.flyo.cloud/nadel-impfen_e79aba3b.jpg/thumb/450x450. Its not to large. We have no idea why this does not work, other collection items works perfectly, looking exact the same (with other images and text of course). Its seems to be totally random.
Are there any BETTER guides on what type of image sources are provided? Are there any limitations? Maybe that md5checksum exists already on the server?
The API docs show you how to create a collection item using the image ref value, if there is no image to reference, try the json structure I’ve mentioned.
Also, as a baseline… make sure to publish your site on cms changes.
Thanks @ChrisDrit for the answer. We have now migrated all calls for type ImageRef to use the json format as you suggested with url. But the problem still persists we got the same response
Request is malformed: Remote image failed to import: Invalid data
What i can say in addition, which maybe makes the problem on server side, is that the same image exists in the WYSIWYG / RichText Content as well. As example: