API Reference

Cmdlet

Send-OfficeConfluenceAttachment

Namespace PSWriteOffice
Outputs
OfficeIMO.Confluence.ConfluenceAttachment

Uploads or versions a Confluence page attachment.

Remarks

Uploads or versions a Confluence page attachment.

Examples

Authored help example

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 Sets

Parameters

Comment String optionalposition: namedpipeline: False
Optional attachment version comment.
ContentType String optionalposition: namedpipeline: False
MIME content type.
FileName String optionalposition: namedpipeline: False
Optional attachment file name. Defaults to the local file name.
MinorEdit Boolean optionalposition: namedpipeline: False
Whether the attachment update is a minor edit.
PageId String requiredposition: namedpipeline: False
Page identifier.
Path String requiredposition: 0pipeline: False
Local file to upload.
Session ConfluenceSession requiredposition: namedpipeline: False
Configured Confluence session.

Outputs

OfficeIMO.Confluence.ConfluenceAttachment