I've migrated content from a CMS (not WP) to Wordpress, through a nodejs script that uses the package wpapi (https://github.com/WP-API/node-wpapi). The main image is set as a featured image in Wordpress. The image is created, assigned to the post id, but unfortunately, thumbnails are not generated (there are no other available sizes). Instead, if I upload an image view the Wordpress UI, feature image feature, the thumbnails are generated or different file sizes are available.
For this reason, I'd like to know if there is an endpoint to do this programmatically, to generate thumbnails and assign to a post or featured image using the Wordpress rest API?
Note: images are stored in S3 bucket and accessed through the cdn, cloudfront. Using media cloud plugin. Media cloud has a tool to regenerate plugins that doesn't work.