Skip to main content

Create Content

Create content or publish a content draft.

External Documentation

To learn more, visit the Confluence Data Center documentation.

Basic Parameters

ParameterDescription
BodyThe body of the content.
TitleThe title of the content.
TypeThe type of the content.

Advanced Parameters

ParameterDescription
AncestorsA comma-seperated list of the ancestors objects of the content.
ChildrenThe children of the content.
ContainerThe container of the content.
Container ReferenceThe container Reference of the content.
Content Draft IDThe id of the content draft. If provided, publishes the draft with the given information.
DescendantsThe descendants of the content.
ExtensionsThe extensions of the content.
HistoryThe history of the content. For more information see Confluence documentation. For example:
<br/>{<br/> "latest": true,<br/> "createdBy": {<br/> "profilePicture": {},<br/> "displayName": "Joe Smith",<br/> "type": "<string>"<br/> },<br/> "createdDate": "2020-01-01T00:00:00Z",<br/> "contributors": {<br/> "idProperties": {},<br/> "expanded": true<br/> }<br/>}<br/>
History ReferenceThe history reference of the content.
LinksThe links of the content. For Example:
<br/>{<br/> "webui": "https://www.example.com/display/SPACEKEY/My+Page"<br/>}<br/>
MetadataThe metadata of the content.
OperationsAn array of the operations of the content. For Example:
<br/> [<br/> {<br/> "operation": "read",<br/> "targetType": "page"<br/> }<br/> ]<br/>
PositionThe position of the content.
RestrictionsThe restrictions of the content.
SpaceThe space of the content. For more information see Confluence documentation. For example:
<br/>{<br/> "id": 123456,<br/> "key": "TEST",<br/> "name": "Test Space",<br/> "status": "current",<br/> "homepage": {<br/> "idProperties": {},<br/> "expanded": true<br/> }<br/>}<br/>
Space ReferenceThe space reference of the content.
StatusThe status of the content.
VersionThe version of the content. For more information see Confluence documentation. For example:
<br/>{<br/> "by": {<br/> "profilePicture": {},<br/> "displayName": "Joe Smith",<br/> "type": "<string>"<br/> },<br/> "when": "2020-01-01T00:00:00Z",<br/> "message": "A message",<br/> "number": 1,<br/> "minorEdit": true,<br/> "hidden": true,<br/> "syncRev": "123456"<br/>}<br/>
Version ReferenceThe version reference of the content.

Example Output

{
"id": "123456",
"type": "page",
"status": "current",
"title": "My Page",
"links": {
"webui": "https://www.example.com/display/SPACEKEY/My+Page"
},
"space": {
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {
"idProperties": {},
"expanded": true
},
"description": {},
"homepage": {
"idProperties": {},
"expanded": true
},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {
"idProperties": {},
"expanded": true
}
},
"history": {
"previousVersion": {
"idProperties": {},
"expanded": true
},
"nextVersion": {
"idProperties": {},
"expanded": true
},
"lastUpdated": {
"idProperties": {},
"expanded": true
},
"latest": true,
"createdBy": {
"profilePicture": {},
"displayName": "Joe Smith",
"type": "<string>"
},
"createdDate": "2020-01-01T00:00:00Z",
"contributors": {
"idProperties": {},
"expanded": true
},
"lastUpdatedRef": {
"idProperties": {},
"expanded": true
},
"nextVersionRef": {
"idProperties": {},
"expanded": true
},
"previousVersionRef": {
"idProperties": {},
"expanded": true
},
"contentParentRef": {
"idProperties": {},
"expanded": true
}
},
"version": {
"by": {
"profilePicture": {},
"displayName": "Joe Smith",
"type": "<string>"
},
"when": "2020-01-01T00:00:00Z",
"message": "A message",
"number": 1,
"minorEdit": true,
"hidden": true,
"syncRev": "123456",
"content": {
"idProperties": {},
"expanded": true
},
"contentRef": {
"idProperties": {},
"expanded": true
}
},
"ancestors": [],
"position": 1,
"operations": [
{
"operation": "read",
"targetType": "page"
}
],
"children": {},
"descendants": {},
"body": {},
"metadata": {
"key": "value"
},
"extensions": {
"key": "value"
},
"restrictions": {
"use": {
"operation": "use",
"restrictions": []
}
}
}

Workflow Library Example

Create Content with Confluence Data Center and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop