Update photo with API

Hi community,

In this moment, I have a problem with the API:
I am reading the documentations, but the info show examples with POST method, using simple data, I need resize the images or repost image resize.
I tried this with Python:
image
However, the image resize didn´t change.

If you can help with my request, I will be grateful!