> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Content

Create content or publish a content draft.

<Note>
  External Documentation

  To learn more, visit the [Confluence Data Center documentation](https://developer.atlassian.com/server/confluence/rest/v900/api-group-content-resource/#api-rest-api-content-post).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter | Description               |
  | --------- | ------------------------- |
  | Body      | The body of the content.  |
  | Title     | The title of the content. |
  | Type      | The type of the content.  |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Ancestors           | A comma-separated list of the ancestors objects of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | Children            | The children of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | Container           | The container of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | Container Reference | The container Reference of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
  | Content Draft ID    | The id of the content draft. If provided, publishes the draft with the given information.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | Descendants         | The descendants of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | Extensions          | The extensions of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | History             | The history of the content. For more information see [Confluence documentation](https://developer.atlassian.com/server/confluence/rest/v900/api-group-content-resource/#api-rest-api-content-post). For example:<br /><pre><code>\{<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 />}</code></pre> |
  | History Reference   | The history reference of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | Links               | The links of the content. For Example:<br /><pre><code>\{<br />  "webui": "[https://www.example.com/display/SPACEKEY/My+Page](https://www.example.com/display/SPACEKEY/My+Page)"<br />}</code></pre>                                                                                                                                                                                                                                                                                                                                                    |
  | Metadata            | The metadata of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | Operations          | An array of the operations of the content. For Example:<br /><pre><code>\[<br />      \{<br />        "operation": "read",<br />        "targetType": "page"<br />      }<br />  ]</code></pre>                                                                                                                                                                                                                                                                                                                                                         |
  | Position            | The position of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | Restrictions        | The restrictions of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
  | Space               | The space of the content. For more information see [Confluence documentation](https://developer.atlassian.com/server/confluence/rest/v900/api-group-content-resource/#api-rest-api-content-post). For example:<br /><pre><code>\{<br />  "id": 123456,<br />  "key": "TEST",<br />  "name": "Test Space",<br />  "status": "current",<br />  "homepage": \{<br />    "idProperties": \{},<br />    "expanded": true<br />  }<br />}</code></pre>                                                                                                        |
  | Space Reference     | The space reference of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | Status              | The status of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
  | Version             | The version of the content. For more information see [Confluence documentation](https://developer.atlassian.com/server/confluence/rest/v900/api-group-content-resource/#api-rest-api-content-post). For example:<br /><pre><code>\{<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 />}</code></pre>  |
  | Version Reference   | The version reference of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
</div>

## Example Output

```json theme={"dark"}
{
	"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](https://library.blinkops.com/workflows/create-content-with-confluence-data-center-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-content-with-confluence-data-center-and-send-results-via-email/canvas" />
</div>
