Hi,
I'm building a jira plugin which should create a confluence space.
1. The example in docs POST request of /rest/api/space is working fine, but it adds a standard content on the homepage body, which needs to be customized.
I tried something like:
{"key":"T14",
"name":"Test 14",
"homepage":{"body":{"storage":{"value":"<p>This is the updated text for the new page</p>","representation":"storage"}}},
"metadata":{}}
...but it doesn't work. It does not add my content into the homepage.
2. The other issue is similar to this. I want to generate a space with some pages using the zipped xml file, which I exported from confluence. There was RPC API in 5.5 version of confluence:
boolean importSpace(String token, byte[] zippedImportData) - import a space into Confluence.
According to docs it has been deprecated and I wonder if it is possible to upload zip archive of the confluence space using the new rest api.