Repository navigation
Conversation
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds a method example for
admin.conversations.bulkSetProperties.methods/src/admin/conversations/admin_conversations_bulk_set_properties.pycallsclient.admin_conversations_bulkSetPropertieswith the reference page's arguments:channel_idsand theexclude_from_slack_aipropertyexample.agents/conversations/(.slack/config,manifest.json, and__init__.pyfiles), andmethods/README.mdlists the method. Socket Mode stays off, like the other plain Web API families (blocks/,canvases/,chat/).admin.conversations:writeuser 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_bulkSetPropertiestoslack_sdk. Themethodstype check fails against the currently pinnedslack_sdk==3.46.0until that ships in a release. This PR stays a draft until then, and theslack_sdkpin gets bumped to that release here.Testing
With slackapi/python-slack-sdk#1991 installed locally:
cd methods/src/admin/conversations && slack install --environment localon an Enterprise org, thenexport SLACK_TOKEN=xoxp-...with an org-level user token that hasadmin.conversations:write.C0123456789with a test channel ID.slack run admin_conversations_bulk_set_properties.pyand confirmokwith abulk_action_idand an emptynot_updated.conversations.infoon the channel and confirmchannel.propertiesincludes"exclude_from_slack_ai": true.🤖 Generated with Claude Code