Skip to content

Commit 9e6657e

Browse files
zimegClaude
andcommitted
fix(methods): pass required canvas_id in getCanvas/setCanvasContent examples
Both methods require canvas_id to target a specific canvas. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent c7f28c8 commit 9e6657e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎methods/src/code_channels/code_channels_get_canvas.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# Call the codeChannels.getCanvas method
1212
response = client.codeChannels_getCanvas(
1313
channel_id="C123ABC456",
14+
canvas_id="F123ABC456",
1415
)
1516

1617
# Inspect the response

‎methods/src/code_channels/code_channels_set_canvas_content.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# Call the codeChannels.setCanvasContent method
1212
response = client.codeChannels_setCanvasContent(
1313
channel_id="C123ABC456",
14+
canvas_id="F123ABC456",
1415
content="# Plan\n\n1. Reproduce the flaky test\n2. Fix the race\n3. Verify",
1516
)
1617

0 commit comments

Comments
 (0)