Cmdlet
Publish-OfficeConfluencePage
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>]#Parameter set:
CreatePublish-OfficeConfluencePage
[-BodyFormat <Storage| AtlasDocFormat>]
-Content <String>
[-ContentFormat <Markdown| Html| AtlasDocFormat| Storage>]
[-FailOnLoss]
-PageId <String>
[-PlanOnly]
[-Session <ConfluenceSession>]
-Title <String>
[-VersionMessage <String>]
-VersionNumber <Int32>
[<CommonParameters>]#Parameter set:
UpdateExamples
Inspect the exact create request without contacting Confluence.
Publish-OfficeConfluencePage -SpaceId 42 -Title 'Daily status' -Content $markdown -PlanOnlyReturns a serializable request plan and performs no network operation.
Update a page using optimistic versioning.
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
- Confluence representation to publish.
- Possible values:
Storage,AtlasDocFormat - -Content String
- Page content in the representation selected by ContentFormat.
- -ContentFormat OfficeConfluenceContentFormat
- Representation of Content.
- Possible values:
Markdown,Html,AtlasDocFormat,Storage - -FailOnLoss SwitchParameter
- Throw when conversion reports reduced fidelity.
- -ParentId String
- Optional parent page identifier for a new page.
- -PlanOnly SwitchParameter
- Return the exact write plan without contacting Confluence.
- -Session ConfluenceSession
- Configured session required for live create or update operations.
- -SpaceId String
- Space identifier for a new page.
- -Title String
- Page title.
- -PageId String
- Page identifier for an update.
- -VersionMessage String
- Optional version message for an update.
- -VersionNumber Int32
- 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.