Next problem with the xwiki REST API.
I can create a new page in a space with
curl -u user:pw -X PUT --data-binary “@newpage.xml” -H “Content-Type: application/xml” http://localhost:9021/rest/wikis/Wiki1/spaces/Space1/spaces/Subspace/pages/NewArticle
newpage.xml contains
NewArticle
xwiki/2.1
This is the new content of NewArticle.
XWiki.ArticleTemplate
XWiki.ArticleTemplateProvider
!With the xml markup, which is here not visible!
The new page is created but with the ‘Empty Page’ template. I tried several variations of newpage.xml, always the same result but no error message.
XWiki version is 16.10.2
Any idea what i am doing wrong or misunderstanding?
Every tip is welcome.
Thanks in advance.
1 post - 1 participant