I have worked out the issue with my @tryghost/migrate. The “posts” field wasn’t correct. My apologies for that one!
My main question is when will the bulk upload feature be available with more user-friendly functionality? At the moment, the JSON Importer from Labs isn’t a simple tool to use and takes a considerable amount of time to set up for importing.
you can see that ugly frame.data.posts, that not make sense to me the api contract require a collections to use only the first item and ignore the rest, Its not make intuitive, but im not know it this is a work in progress.
If you are running a custom instalation, you can edit this file and add your custim import logic.
i suggest you create new method with a contract as:
There’s no plan to add bulk actions to the API at present.
I’m interested in a couple of things here:
what is the use case for adding multiple posts at the same time?
what is the problem with using the API and sending multiple posts in sequence?
The migration / import tooling is intended for one-off usage when you first move to Ghost. The API allows for creating or publishing posts regularly. At the moment I’m not aware of that many people using the ability to send a single post via the API and so I’m keen to understand what’s holding people back from using the API as it’s currently intended.
Thanks again for getting back to me. You guys and gals run a great community here.
We have just purchased a website which posts quotes (quotesaday.com). It’s currently on WP but I’m looking to move over to Ghost as it’s my preferred platform. This is my first time developing a custom theme so I’m working my way through it using your docs which have been helpful thus far.
So, we create the quotes in bulk via Google Sheets and then upload them as CSV to WP. I’m trying to find a similar solution for Ghost. At the moment I’m still setting everything up in Sheets, then exporting as CSV, converting to JSON, running through @tryghost/migrate and then uploading the file via the Importer. As these are quotes rather than regular posts, we have a ton to import regularly. I’ve almost finished the layout and functionality, but bulk uploading the content is my biggest stumbling block at this stage.
Thanks for the background info - this makes sense.
The API I’m referring to is our admin API:
It’s specifically designed for being able to send individual pieces of content to Ghost. It doesn’t have bulk update so you’d need to iterate and make multiple calls, but it would save you from manually running migrate tools & uploading files.
What you said makes more weird a api contract that receive a array of one item.
What was the thinking behind this contract ?
And where I can find the roadmap with plans of next features that are developed ?
The need o an bulk api is to process a large amount of data without overhead of multiple http request, but in batches…if data is really large produce a enormeus json to upload require a big resources , that web proxies need to be configured to accept that large upload a absurd timeout.