# Send-OfficeConfluenceAttachment

Uploads or versions a Confluence page attachment. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Confluence.ConfluenceAttachment`

**Source**

[SendOfficeConfluenceAttachmentCommand.cs:17](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Confluence/SendOfficeConfluenceAttachmentCommand.cs#L17) 

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>]
```

[#](#method-send-officeconfluenceattachment-string-string-string-boolean-string-string-confluencesession)

Parameter set: `All Parameter Sets`

## Examples

### Upload a generated report workbook.

```powershell
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**

Optional attachment version comment.

**-ContentType String optional**

MIME content type.

**-FileName String optional**

Optional attachment file name. Defaults to the local file name.

**-MinorEdit Boolean optional**

Whether the attachment update is a minor edit.

**-PageId String required**

Page identifier.

**-Path String requiredposition: 0**

Local file to upload.

**-Session ConfluenceSession required**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:D434A97EE4FF735ECD76692C25EB59D13FE4FD8F361275FEFF819DFEA499BCC1 -->
