I think that I'm working with a bad API design here, according to the documentation I need to send photo bytes as JPEG in the request, my question is: How to send this bytes in a text/json? below is the documentation to sending photos to this API.
Documentation of sending photos to API
Below is my put request in python:
reply = requests.put(url, data=blob, headers=self.headers)
where blob is the binary of the image.