How to generate post id by hand?

I want to insert post into ghost db using sql. If i’m using random number as post id it fails to display it then.

So: What’s the algorithm to generate post id?

Is there a reason you’re not using the Admin API for this? One of the main reasons for it existing is to make it easier for you do stuff like this - as long as you provide the minimum required data, Ghost will insert the post and return the details.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.