Cmdlet
Set-OfficeConfluenceManagedSection
Safely replaces one marker-delimited section in a Confluence storage body.
Syntax
Set-OfficeConfluenceManagedSection
[-AppendIfMissing]
-ExistingBody <String>
[-PassThruBody]
-Replacement <String>
-SectionId <String>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Replace a generated report while preserving owner-authored content.
$result = Set-OfficeConfluenceManagedSection -ExistingBody $storage -SectionId daily-report -Replacement $html -AppendIfMissingReturns before/after hashes and the updated body without contacting Confluence.
Parameters
- -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.
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.