The api "storePageContent" deletes old content and adds new content to it. But it needs page to be already present. There should be api to create a new page.