Creates a hierarchy of documents based on the posted document.

Parent
Type
Extension
Since
4.1
Path
rest/projectdoc/1/service/document-create-hierarchy
HTTP Method
POST

Creates a set of documents based on a description document.

The service accepts JSON and XML documents.

Parameters

The following parameters allow to control the creation of the projectdoc documents.

space-key

The key to the space where the new document will be stored.

location

The location within the space that defines the parent page.

Either provide

  • the title of the page (not the name of the document),
  • the page identifier surrounded by curly braces (e.g.{123456}, the value of  space-key  is not taken into account in this case), or
  • the keyword {homepage} (to store the document to the doctype's homepage).

If the page title starts with a curly brace ({) and ends with one (}), you need to escape it with a backslash ( \) as in \{My Page Title}.

Document

The basic structure is a list of documents.

{
  "documents": [ ]
}    

Each document has three properties:

  1. property
    1. name
    2. value
    3. controls
    4. position
  2. section
    1. title
    2. content
  3. children - list of documents
{
      "property": [],
      "section": [],
      "children": []
}    

The basic structure of a property:

{
  "name": "Iteration",
  "value": "production",
  "controls": "hide",
  "position": "replace-values"
}   

The basic structure of a section:

{
  "title": "References",
  "content": "The content in Confluence Storage Format."
}   

Doctype Maven Plugin Support

The Doctype Maven Plugin supports generating category trees since version 1.8.

To switch on category tree generation by setting the generateCategoryTree to true.

<generateCategoryTree>true</generateCategoryTree>

REST Service

The Documents Create Hierarchy Service is used to create document instance hierarchies.

Category Tree Repository

The category tree files can be downloaded in JSON format on Category Trees.

List of JSON files.

Category tree for the arc42 Template for the English locale.

Category tree for the arc42 Template for the German locale.

Category tree for Content Management for the English locale.
Category tree for Content Management for the Germany locale.

Category tree for the Doctypes for Service Management for the English locale.

Category tree for the Doctypes for Service Management for the German locale.
Category tree for the Software Development Doctypes for the English locale.
Category tree for the Software Development Doctypes for the German locale.
Category tree for the Doctypes for V-Modell XT for the German locale.

Resources

More information on related topics.

Confluence Storage Format
This page describes the XHTML-based format that Confluence uses to store the content of pages, page templates, blueprints, blog posts and comments. This information is intended for advanced users who need to interpret and edit the underlying markup of a Confluence page.