Confluence to XWiki

I simply dont get the REST..

I can create a page with a PUT on

https://funky.mos-eisley.dk/rest/wikis/xwiki/spaces/Sandbox/pages/AtlassianHome

But if I try to generate a child page with a PUT on:

https://funky.mos-eisley.dk/rest/wikis/xwiki/spaces/Sandbox/spaces/AtlassianHome/pages/sub3

A new “AtlassianHome” thing is created - its not really a page (The requested page could not be found.) - but it actually has a child - the Sub3 page

If I delete the Sub3 page, the “intermediate” page is gone also

Something is a little more wrong than that - the first page AtlassianHome is not acting like a UI created page, If I want to create a page below, its not possible via the UI…

Ok - I found the method on XWiki REST API - Create a sub-page to an already existing page - #2 by acotiuga

Wierdest system I have ever encountered…