Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Document Properties Marker
overridefalse
Short DescriptionUpdates and renames a section of a projectdoc document. 
Doctypeaddon-componenthide
NameSection Service / PATCH 
Short NamePATCH 
Parent
Parent Property
property-nameName
 
Audience
Name List
render-no-hits-as-blanktrue
addon-componentrole
propertyAudience
 
Type
Name List
doctypeaddon-component-type
render-no-hits-as-blanktrue
propertyType
 
Subject
Name List
doctypesubject
propertySubject
 
Categories
Name List
doctypecategory
propertyCategories
 
Tags
Tag List
propertyTags
 
Iteration
Iteration
valuefilled
hide
Since1.1 
Path
Parent Property
add-linkfalse
propertyPath
property-namePath
 
Deprecatedhide
Removedhide
Sort Key00300hide
Section
indextrue
show-titlefalse
titleDescription

Updates and renames a section of a projectdoc document.

Warning Box

There is no undo! It is strongly recommended to run commands only on backed up instances. Make a backup of your data before starting to work with this API! Consider to run your experiments on a copy of the production data!

If your environment does not support the HTTP PATCH method try to use the patch resource at projectdoc/1/patch/document/{id}/section/{name} as a workaround.

Sections do not track modification date and ETag. Therefore the returned information refers to the enclosing document. ETags are only supported on Confluence platforms version 5.10 and later.

Section
titlePath Parameter

All path parameters are required to be specified.

Section
titleid

The unique identifier of the requested projectdoc document.

Section
titlename

The title or identifier of the requested section.

Section
titleRepresentation

The format of the representation to post to the URL may be XML or JSON.

Note that the title of the document will be overridden by the title or id specified in the URL as path parameter name.

Warning Box

Section titles do not need to be unique. Although it is not recommended to have sections the the same title, the service does not reject to create one.

The API currently does not provide means to select sections with non-unique names.

Positioning of a document is specified with the position and ref elements of the representation.

Section
titletitle

The value of the title is the new title for the section.

If no title is specified, the old title is not changed.

Transclusion
taget-heading-level*
documentSection Service / POST
idscontent

Section
titleref

While it is technically possible to specify the ref parameter, it has no function for patching a section. Therefore the result for using this parameter is not specified.

Note Box

This parameter should not be used for the current version of this service.

Section
titleposition

The only valid position is replace which is the default.

Note Box

This parameter should not be used for the current version of this service.

Section
titleSubordinate Components
Display Table
doctypeaddon-component
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name
Section
required-permissionswrite-access
titleNotes

Section
titleReferences

Section
titleResources