API Reference
Cmdlet
Send-OfficeConfluenceAttachment
Uploads or versions a Confluence page attachment.
Remarks
Uploads or versions a Confluence page attachment.
Examples
Example 1: Upload a generated report workbook.
PS>
Send-OfficeConfluenceAttachment -Session $session -PageId 12345 -Path .\report.xlsx -Comment 'Daily refresh'
Uses Confluence's multipart attachment endpoint without automatically retrying the write.
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
Send-OfficeConfluenceAttachment [-Comment <String>] [-ContentType <String>] [-FileName <String>] [-MinorEdit <Boolean>] -PageId <String> -Path <String> -Session <ConfluenceSession> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- 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.
Outputs
OfficeIMO.Confluence.ConfluenceAttachment