API Reference

Cmdlet

Set-OfficeConfluenceManagedSection

Namespace PSWriteOffice
Inputs
System.String
Outputs
OfficeIMO.Confluence.ConfluenceManagedSectionResult System.String

Safely replaces one marker-delimited section in a Confluence storage body.

Remarks

Safely replaces one marker-delimited section in a Confluence storage body.

Examples

Authored help example

Example 1: Replace a generated report while preserving owner-authored content.

PS>


$result = Set-OfficeConfluenceManagedSection -ExistingBody $storage -SectionId daily-report -Replacement $html -AppendIfMissing
        

Returns before/after hashes and the updated body without contacting Confluence.

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.

Syntax

Set-OfficeConfluenceManagedSection [-AppendIfMissing] -ExistingBody <String> [-PassThruBody] -Replacement <String> -SectionId <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

AppendIfMissing SwitchParameter optionalposition: namedpipeline: False
Append a new marker pair when the section does not exist.
ExistingBody String requiredposition: namedpipeline: True (ByValue)
Existing Confluence storage body.
PassThruBody SwitchParameter optionalposition: namedpipeline: False
Return only the updated body string.
Replacement String requiredposition: namedpipeline: False
Replacement storage-format content.
SectionId String requiredposition: namedpipeline: False
Stable marker identifier.

Outputs

OfficeIMO.Confluence.ConfluenceManagedSectionResult, System.String