Cmdlet
Send-OfficeConfluenceAttachment
Uploads or versions a Confluence page attachment.
Syntax
Send-OfficeConfluenceAttachment
[-Comment <String>]
[-ContentType <String>]
[-FileName <String>]
[-MinorEdit <Boolean>]
-PageId <String>
[-Path] <String>
-Session <ConfluenceSession>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Upload a generated report workbook.
Send-OfficeConfluenceAttachment -Session $session -PageId 12345 -Path .\report.xlsx -Comment 'Daily refresh'Uses Confluence's multipart attachment endpoint without automatically retrying the write.
Parameters
- -Comment String
- Optional attachment version comment.
- -ContentType String
- MIME content type.
- -FileName String
- Optional attachment file name. Defaults to the local file name.
- -MinorEdit Boolean
- Whether the attachment update is a minor edit.
- -PageId String
- Page identifier.
- -Path String
- Local file to upload.
- -Session ConfluenceSession
- Configured Confluence session.
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.