Using API to add an image to an item #1100
-
Hello! I'm trying to use the API to upload images to my items inside a collection. I'm using This is the request I'm doing in python:
I have tried many things and I always get this answer, I don't know if I am doing something wrong or there is some kind of bug:
I would be grateful if someone could explain briefly how to use this endpoint because I'm pretty sure I'm missing something. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, the problem is that the endpoint isn't expecting base64 encoded files. I don't know much about Python but I think this would be the right way to do it : https://requests.readthedocs.io/en/latest/user/quickstart/#post-a-multipart-encoded-file Hope this helps you, if not I'll try to investigate on my end |
Beta Was this translation helpful? Give feedback.
Hello, the problem is that the endpoint isn't expecting base64 encoded files. I don't know much about Python but I think this would be the right way to do it : https://requests.readthedocs.io/en/latest/user/quickstart/#post-a-multipart-encoded-file
Hope this helps you, if not I'll try to investigate on my end