Slack Edit

Slack Edit

Certified

Apply changes to a canvas

Submits one or more Canvas API changes (insert, replace, delete, rename). Each change must include an operation plus either documentContent or titleContent depending on the operation.

yaml
type: io.kestra.plugin.slack.app.canvases.Edit

Insert content at the end of a canvas

yaml
id: slack_edit_canvas
namespace: company.team

tasks:
  - id: edit_canvas
    type: io.kestra.plugin.slack.app.canvases.Edit
    token: "{{ secret('SLACK_TOKEN') }}"
    canvasId: "F1234567890"
    changes:
      - operation: "insert_at_end"
        documentContent:
          type: "markdown"
          markdown: "## New Section\n\nThis is new content."

Replace a section in a canvas

yaml
id: slack_replace_canvas_section
namespace: company.team

tasks:
  - id: replace_section
    type: io.kestra.plugin.slack.app.canvases.Edit
    token: "{{ secret('SLACK_TOKEN') }}"
    canvasId: "F1234567890"
    changes:
      - operation: "replace"
        sectionId: "temp:C:VXX8e648e6984e441c6aa8c61173"
        documentContent:
          type: "markdown"
          markdown: "- [x] Task completed"

Rename a canvas

yaml
id: slack_rename_canvas
namespace: company.team

tasks:
  - id: rename_canvas
    type: io.kestra.plugin.slack.app.canvases.Edit
    token: "{{ secret('SLACK_TOKEN') }}"
    canvasId: "F1234567890"
    changes:
      - operation: "rename"
        titleContent:
          type: "markdown"
          markdown: "Project Status :white_check_mark:"
Properties

Canvas ID

Canvas to edit; find it in the canvas URL or from creation output.

SubTypeobject

Canvas change list

Each entry must set operation plus documentContent or titleContent. Supported operations: insert_after, insert_before, insert_at_start, insert_at_end, replace, delete, rename.

Slack token

Reference (ref) of the pluginDefaults to apply to this task.