-
Notifications
You must be signed in to change notification settings - Fork 679
Open
Labels
pkg:web-apiapplies to `@slack/web-api`applies to `@slack/web-api`questionM-T: User needs support to use the projectM-T: User needs support to use the project
Description
The method canvases.create is missing the property channel_id from the API Reference.
Packages:
Select all that apply:
-
@slack/web-api -
@slack/rtm-api -
@slack/webhooks -
@slack/oauth -
@slack/socket-mode -
@slack/types - I don't know
Reproducible in:
The Slack SDK version
"slack/web-api": "^7.13.0",Node.js runtime version
v20.19.4OS info
ProductName: macOS
ProductVersion: 26.2
BuildVersion: 25C56
Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:56 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6041
Steps to reproduce:
- Try to create a channel canvas using client.conversations.canvases.create with a channel_id
const canvasResponse = await slackClient.canvases.create({
channel_id: channelId,
title: 'My canvas title',
document_content: {
type: 'markdown',
markdown: canvasMd,
}
});- Get a type error
Object literal may only specify known properties, and 'channel_id' does not exist in type 'TokenOverridable & { title?: string | undefined; document_content?: DocumentContent | undefined; }'.ts(2353)
Expected result:
Title should be an accepted param according to the API Reference
Actual result:
Object literal may only specify known properties, and 'channel_id' does not exist in type 'TokenOverridable & { title?: string | undefined; document_content?: DocumentContent | undefined; }'.ts(2353)
Metadata
Metadata
Assignees
Labels
pkg:web-apiapplies to `@slack/web-api`applies to `@slack/web-api`questionM-T: User needs support to use the projectM-T: User needs support to use the project