From 5dce8797f151413d75ed1afce29f51a8a0b990c3 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Mon, 30 Nov 2026 16:10:59 -0800 Subject: [PATCH] feat(methods): add slackbot.skillSets.update method example Co-Authored-By: Claude --- methods/README.md | 1 + .../skillSets/slackbot_skill_sets_update.py | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 methods/src/slackbot/skillSets/slackbot_skill_sets_update.py diff --git a/methods/README.md b/methods/README.md index a65441f..43e6fe1 100644 --- a/methods/README.md +++ b/methods/README.md @@ -77,6 +77,7 @@ $ slack run chat_post_message.py # Make the request - **[slackbot.skillSets.library.add](https://docs.slack.dev/reference/methods/slackbot.skillSets.library.add)**: Adds a Slackbot skill set to the caller's library. [Implementation](./src/slackbot/skillSets/library/slackbot_skill_sets_library_add.py). - **[slackbot.skillSets.library.remove](https://docs.slack.dev/reference/methods/slackbot.skillSets.library.remove)**: Removes a Slackbot skill set from the caller's library. [Implementation](./src/slackbot/skillSets/library/slackbot_skill_sets_library_remove.py). - **[slackbot.skillSets.list](https://docs.slack.dev/reference/methods/slackbot.skillSets.list)**: Lists Slackbot skill sets from the caller's point of view. The skills in each set are not included. [Implementation](./src/slackbot/skillSets/slackbot_skill_sets_list.py). +- **[slackbot.skillSets.update](https://docs.slack.dev/reference/methods/slackbot.skillSets.update)**: Changes a Slackbot skill set's display name or description. [Implementation](./src/slackbot/skillSets/slackbot_skill_sets_update.py). - **[slackbot.skills.create](https://docs.slack.dev/reference/methods/slackbot.skills.create)**: Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill. [Implementation](./src/slackbot/skills/slackbot_skills_create.py). - **[slackbot.skills.delete](https://docs.slack.dev/reference/methods/slackbot.skills.delete)**: Deletes a Slackbot skill and its canvas, and removes it from every library, skill set, and the org catalog. [Implementation](./src/slackbot/skills/slackbot_skills_delete.py). - **[slackbot.skills.info](https://docs.slack.dev/reference/methods/slackbot.skills.info)**: Returns one Slackbot skill, including its instructions. [Implementation](./src/slackbot/skills/slackbot_skills_info.py). diff --git a/methods/src/slackbot/skillSets/slackbot_skill_sets_update.py b/methods/src/slackbot/skillSets/slackbot_skill_sets_update.py new file mode 100644 index 0000000..af01103 --- /dev/null +++ b/methods/src/slackbot/skillSets/slackbot_skill_sets_update.py @@ -0,0 +1,19 @@ +import os + +from slack_sdk import WebClient + +# Read a token from an environment variable +token = os.environ.get("SLACK_TOKEN") + +# Initialize +client = WebClient(token=token) + +# Call the slackbot.skillSets.update method +response = client.slackbot_skillSets_update( + skill_set_id="F0789IJKL", + display_name="Sales toolkit", + description="Skills for preparing customer calls, writing proposals, and following up on deals.", +) + +# Inspect the response +print(response)