API Reference
Cmdlet
Set-OfficeConfluenceManagedSection
Safely replaces one marker-delimited section in a Confluence storage body.
Remarks
Safely replaces one marker-delimited section in a Confluence storage body.
Examples
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 SetsParameters
- AppendIfMissing SwitchParameter
- Append a new marker pair when the section does not exist.
- ExistingBody String
- Existing Confluence storage body.
- PassThruBody SwitchParameter
- Return only the updated body string.
- Replacement String
- Replacement storage-format content.
- SectionId String
- Stable marker identifier.
Outputs
OfficeIMO.Confluence.ConfluenceManagedSectionResult, System.String