Set feature_image through api

I try to set the feature_image programatically. I first upload the image with ( POST /admin/images/upload/) and I then reference it in post create/update ( POST/PUT /admin/posts/). Everything works fine except for the feature_image. I tried absolute and relative url’s. No luck. Any solution? Kind regards, Jacques Bopp

Hmm, interesting issue you have there @JacquesBopp. How are you interacting with the API? I’m guessing not with JavaScript from the syntax you mention

Problem solved. I made a stupid error and didn’t see it until I wanted to answer you. By the way: I use python 3 and requests. To create a post I call “, params=params, json=content, headers=headers)” . All works perfect now. Thanks anyway.

1 Like