slack.editCanvas applies one edit operation per Slack API call. Workspace plan restrictions and the caller’s Canvas permissions still apply.
Example
automations/edit-slack-canvas.automation.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Apply one content or title change to a Slack Canvas.
slack.editCanvas applies one edit operation per Slack API call. Workspace plan restrictions and the caller’s Canvas permissions still apply.
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Append canvas section", () => {
onDashboardRun({ title: "Append canvas section" })
slack.editCanvas({
canvasId: "F01234567",
change: {
documentContent: { markdown: "## Next steps", type: "markdown" },
operation: "insert_at_end",
},
})
})
| Input | Type | Required | Description |
|---|---|---|---|
canvasId | string | Yes | Stable Slack Canvas ID. |
change | Canvas edit operation | Yes | One insert_after, insert_before, insert_at_start, insert_at_end, replace, delete, or rename operation with its required content or section ID. |
Second argument: { account } | string | IntegrationAccountReference<"slack"> | No | Slack binding. |