Adding featured_image(s) via wordpress rest api

I’d like to create posts using the wordpress rest api.

But I’m unsure how to add a featured\_image.

My images are stored in aws S3 bucket e.g. [https://bucket-26hjzf.s3.eu-west-2.amazonaws.com](https://bucket-26hjzf.s3.eu-west-2.amazonaws.com)/image.jpg

AND I want to upload 2 images for each featured\_image for a post – one 1200px wide and the same image 600px wide (for desktop and mobile).

Apologies if this is a bad question, I’m not very familiar with wordpress.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer