Skip to content

Commit 50adfb6

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

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export async function PUT(request: NextRequest) {
185185
return NextResponse.json({ error: cloudIdValidation.error }, { status: 400 })
186186
}
187187

188-
const currentPageUrl = `https://api.atlassian.com/ex/confluence/${cloudId}/wiki/api/v2/pages/${pageId}`
188+
const currentPageUrl = `https://api.atlassian.com/ex/confluence/${cloudId}/wiki/api/v2/pages/${pageId}?body-format=storage`
189189
const currentPageResponse = await fetch(currentPageUrl, {
190190
headers: {
191191
Accept: 'application/json',

0 commit comments

Comments
 (0)