I want to move my blog about books to Storyblok. Each book has an author .
I’ve already manually created two components (author, book) as content types and also nestable.
Following Github’s CSV Import example, I’ve successfully imported authors (just name and slug)
Now, I think the key to import books together with its author is in these lines from the Management API:
The story[content] property needs to be an object at the root level
Every object inside needs to have the property “component”:“your_components_name”
Only nest components using arrays, except if you want to build a custom field type.
Every nested object which is a component or custom field type needs a _uid property.
So, the book story content should have this structure:
My first problem is that I’m getting a 500 error in a single book import (setting the _uid manually) with this code.
The second problem is that I only have the slugs for the authors (not the _uids) in my book’s csv file.
What could be causing the 500 error? Am I using the right approach to import books and authors?
Thank you very much