How to provide author, tags, and featured image as metadata?

I’m writing a script to import dozens of gatsby-markdown blog posts to Ghost.

The documentation /docs/migration/content/#mobiledoc doesn’t show metadata for Author and Tags, which I’d like to import as well.

I also would like to set the featured image during the migration.

Regarding author, what happens if I try to import/set through metadata an author that is not yet listed as an author in our Ghost account?

Thanks!

I recommend using the SDK if possible. The documentation is better too!

You need to construct a post object and feed it to the admin API. You can include an author (that needs to already exist) and an array of tags (which get created if needed). So you may want to import your authors first!