Skip to content

Commit 7794820

Browse files
waleedlatif1claude
andcommitted
fix(confluence): add body-format=storage to blogpost update GET request
Without this param, the Confluence v2 API does not return body content, causing the fallback to erase existing content when only updating the title. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a75d987 commit 7794820

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/api/tools/confluence/blogposts

1 file changed

+1
-1
lines changed

apps/sim/app/api/tools/confluence/blogposts/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export async function PUT(request: NextRequest) {
317317
}
318318

319319
// Fetch current blog post to get version number
320-
const currentUrl = `https://api.atlassian.com/ex/confluence/${cloudId}/wiki/api/v2/blogposts/${blogPostId}`
320+
const currentUrl = `https://api.atlassian.com/ex/confluence/${cloudId}/wiki/api/v2/blogposts/${blogPostId}?body-format=storage`
321321
const currentResponse = await fetch(currentUrl, {
322322
headers: {
323323
Accept: 'application/json',

0 commit comments

Comments
 (0)