Skip to content

feat: add admin.conversations.bulkSetProperties method example - #368

Draft
zimeg wants to merge 2 commits into
mainfrom
zimeg-feat-admin-conversations-bulk-set-properties-example
Draft

zimeg wants to merge 2 commits into
mainfrom
zimeg-feat-admin-conversations-bulk-set-properties-example

Conversation

@zimeg

@zimeg zimeg commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds a method example for admin.conversations.bulkSetProperties.

  • methods/src/admin/conversations/admin_conversations_bulk_set_properties.py calls client.admin_conversations_bulkSetProperties with the reference page's arguments: channel_ids and the exclude_from_slack_ai property example.
  • The folder mirrors agents/conversations/ (.slack/ config, manifest.json, and __init__.py files), and methods/README.md lists the method. Socket Mode stays off, like the other plain Web API families (blocks/, canvases/, chat/).
  • The manifest asks for the admin.conversations:write user scope on an org-level install, since this method needs an org admin's user token.

Dependency: stays a draft

This depends on slackapi/python-slack-sdk#1991, which adds admin_conversations_bulkSetProperties to slack_sdk. The methods type check fails against the currently pinned slack_sdk==3.46.0 until that ships in a release. This PR stays a draft until then, and the slack_sdk pin gets bumped to that release here.

Testing

With slackapi/python-slack-sdk#1991 installed locally:

  1. cd methods/src/admin/conversations && slack install --environment local on an Enterprise org, then export SLACK_TOKEN=xoxp-... with an org-level user token that has admin.conversations:write.
  2. Replace C0123456789 with a test channel ID.
  3. slack run admin_conversations_bulk_set_properties.py and confirm ok with a bulk_action_id and an empty not_updated.
  4. Call conversations.info on the channel and confirm channel.properties includes "exclude_from_slack_ai": true.

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg added enhancement New feature or request python Pull requests that update python code labels Nov 12, 2026
@zimeg zimeg self-assigned this Nov 12, 2026
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant