# Publish-OfficeConfluencePage

Plans, creates, or updates a Confluence Cloud page.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`System.String`

**Outputs**

`OfficeIMO.Confluence.ConfluencePageWritePlan` `OfficeIMO.Confluence.ConfluencePage`

**Source**

[PublishOfficeConfluencePageCommand.cs:25](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Confluence/PublishOfficeConfluencePageCommand.cs#L25) 

Plans, creates, or updates a Confluence Cloud page.

## Syntax

```
Publish-OfficeConfluencePage
[-BodyFormat <Storage|AtlasDocFormat>]
-Content <String>
[-ContentFormat <Markdown|Html|AtlasDocFormat|Storage>]
[-FailOnLoss]
[-ParentId <String>]
[-PlanOnly]
[-Session <ConfluenceSession>]
-SpaceId <String>
-Title <String>
[<CommonParameters>]
```

[#](#method-publish-officeconfluencepage-confluencebodyformat-string-officeconfluencecontentformat-switchparameter-string-switchparameter-confluencesession-string-string)

Parameter set: `Create`

```
Publish-OfficeConfluencePage
[-BodyFormat <Storage|AtlasDocFormat>]
-Content <String>
[-ContentFormat <Markdown|Html|AtlasDocFormat|Storage>]
[-FailOnLoss]
-PageId <String>
[-PlanOnly]
[-Session <ConfluenceSession>]
-Title <String>
[-VersionMessage <String>]
-VersionNumber <Int32>
[<CommonParameters>]
```

[#](#method-publish-officeconfluencepage-confluencebodyformat-string-officeconfluencecontentformat-switchparameter-string-switchparameter-confluencesession-string-string-int32)

Parameter set: `Update`

## Examples

### Inspect the exact create request without contacting Confluence.

```powershell
Publish-OfficeConfluencePage -SpaceId 42 -Title 'Daily status' -Content $markdown -PlanOnly
```

Returns a serializable request plan and performs no network operation.

### Update a page using optimistic versioning.

```powershell
Publish-OfficeConfluencePage -Session $session -PageId 123 -Title 'Daily status' -VersionNumber 8 -Content $markdown -VersionMessage 'automation refresh'
```

The version number must be the next Confluence page version.

## Parameters

**-BodyFormat ConfluenceBodyFormat optional**

Confluence representation to publish.

Possible values: `Storage`, `AtlasDocFormat`

**-Content String requiredpipeline: True (ByValue)**

Page content in the representation selected by ContentFormat.

**-ContentFormat OfficeConfluenceContentFormat optional**

Representation of Content.

Possible values: `Markdown`, `Html`, `AtlasDocFormat`, `Storage`

**-FailOnLoss SwitchParameter optional**

Throw when conversion reports reduced fidelity.

**-ParentId String optionalsets: Create**

Optional parent page identifier for a new page.

**-PlanOnly SwitchParameter optional**

Return the exact write plan without contacting Confluence.

**-Session ConfluenceSession optional**

Configured session required for live create or update operations.

**-SpaceId String requiredsets: Create**

Space identifier for a new page.

**-Title String required**

Page title.

**-PageId String requiredsets: Update**

Page identifier for an update.

**-VersionMessage String optionalsets: Update**

Optional version message for an update.

**-VersionNumber Int32 requiredsets: Update**

Next positive page version number for an update.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:2F0E4DFAFB481362D7B964E0AE5202A0BD14174ED911D82405683B707C80656F -->
