Upload a file, replacing it if it already exists
One step with Confluence. We can help you get access.
Get something done
Upload a file, replacing it if it already exists
with Confluence
Works with AI assistants
Use Confluence: its Confluence Cloud REST Content - attachments API lets you upload a file, replacing it if it already exists in a single step (PUT /wiki/rest/api/content/{id}/child/attachment). Confluence also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I upload a file to a page and have it create a new version if one with that name already exists?
- Can I upsert an attachment as a minor edit so watchers aren't notified?
Say it to your AI assistant
- Upload {file} to content {id}, creating a new version if it already exists, with minor edit {minorEdit}.
- Upsert attachment {file} on page {id} with comment {comment}, minor edit {minorEdit}.
For your developer
PUT /wiki/rest/api/content/{id}/child/attachment in Confluence Cloud REST Content - attachments API. Full spec on APIs.io.