Skip to content

Commit 51bc5b5

Browse files
committed
updated route
1 parent 7c4b925 commit 51bc5b5

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ export async function DELETE(request: NextRequest) {
236236
return NextResponse.json({ error: cloudIdValidation.error }, { status: 400 })
237237
}
238238

239-
const encodedLabel = encodeURIComponent(labelName.trim())
240-
const url = `https://api.atlassian.com/ex/confluence/${cloudId}/wiki/rest/api/content/${pageId}/label/${encodedLabel}`
239+
const url = `https://api.atlassian.com/ex/confluence/${cloudId}/wiki/rest/api/content/${pageId}/label?name=${encodeURIComponent(labelName.trim())}`
241240

242241
const response = await fetch(url, {
243242
method: 'DELETE',

0 commit comments

Comments
 (0)