I am creating posts with WP-API and I want to attach files to them.
I see a section in the docs saying "create an attachment", but it seems that it doesn't associate the file with a post.
I also don't see any other obvious way to associate a media/attachment with a post.
What am I missing?
It seems that WordPress (or WP-API) does not link media to posts, but you have to add a link on your post to the media/attachment.