Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
Description
Problem
Currently, we have apis to create space such as. But we have no provision to create space with a specific blueprint.
curl -v -u username:password -X POST -H 'Content-Type: application/json' -d '{"key":"samplekey","name":"private space ","description":{"plain":{"value":"test private space","representation":"plain"}}}' http://<domain-url>/rest/api/space/_private
Suggested Solution
It would be great to have the provision to create space with different blueprints such as:
Blank Space, Knowledge Base, Team Space, Documentation Space through REST api. This is presently not available from the current REST apis.
Why This Is Important
This will help customers to create different kind of spaces, rather than use the default blank space.
Workaround
We could use the following curl:
curl -v -u username:password -X POST -H 'Content-Type: application/json' -d '{"spaceKey":"spacekeyvalue","name":"spacename","description":"","spaceBlueprintId":"ee90bf99-82d5-423b-b70f-b9bf2ff6a681","context":{"name":"spacename","spaceKey":"spacekeyvalue","description":"","ContentPageTitle":"spacename"}}' http://<domain-url>/rest/create-dialog/1.0/space-blueprint/create-space
But this does not work for some cases and the provision to pass blueprintid is not user friendly and the above api is not supported officially.