Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-93152

Need REST apis to create Space with different blueprints

    XMLWordPrintable

Details

    • 1
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sganeshan@atlassian.com Sathya Ganeshan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: