How to generate post id by hand?

#1

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?

0 Likes

#2

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.

0 Likes

closed #3

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

0 Likes