Skip to content

feat(methods): add apps.managed.permissions.set method example - #135

Merged
zimeg merged 4 commits into
mainfrom
zimeg-feat-apps-managed-permissions-examples-set
Nov 20, 2026
Merged

zimeg merged 4 commits into
mainfrom
zimeg-feat-apps-managed-permissions-examples-set

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds a method example for apps.managed.permissions.set in methods/src/main/java/apps/managed/permissions/AppsManagedPermissionsSet.java, and lists it in methods/README.md.

  • The arguments match the siblings in bolt-js-examples and bolt-python-examples, with the example values from the reference page.
  • Adds apps/managed/permissions/manifest.json with no bot scopes, since the token is issued to the manager app.

This is part 1 of 1 in the apps.managed stack, which is based on main and matches slackapi/java-slack-sdk#1708. This pull request is in batch B7 app settings.

  1. feat(methods): add apps.managed.permissions.set method example #135 apps.managed.permissions.set 👈 this pull request

Dependency

This depends on slackapi/java-slack-sdk#1708, which adds appsManagedPermissionsSet to slack-api-client. It shipped in slack-api-client 1.56.0, which methods/pom.xml now pins.

Testing

With slackapi/java-slack-sdk#1708 installed locally (./scripts/install_local.sh) and the pin pointed at that snapshot:

  1. cd methods and export SLACK_TOKEN=... with a user or bot token issued to the manager app.
  2. mvn compile exec:java -Dexec.mainClass=apps.managed.permissions.AppsManagedPermissionsSet and check the response. Replace the placeholder values with real ones to see ok.

Every example compiles against the SDK changes. The call matches the remote test in slackapi/java-slack-sdk#1708, which checks it against the live API.

🤖 Generated with Claude Code

@zimeg
zimeg force-pushed the zimeg-feat-apps-icon-examples-set branch from e9f1646 to 3723493 Compare November 18, 2026 06:17
@zimeg
zimeg changed the base branch from zimeg-feat-apps-icon-examples-set to main November 18, 2026 06:17
@zimeg
zimeg force-pushed the zimeg-feat-apps-managed-permissions-examples-set branch from 180b829 to 2e868de Compare November 18, 2026 06:17
zimeg and others added 2 commits November 20, 2026 02:04
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…in the readme

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg marked this pull request as ready for review November 20, 2026 10:10
@zimeg
zimeg requested a review from a team as a code owner November 20, 2026 10:10

@cchensh cchensh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The call matches the released SDK (method, argument names and types), the structure matches the sibling examples, and CI is green.

…-set

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>

# Conflicts:
#	methods/README.md
@zimeg

zimeg commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

🌟 Thanks for the kind review @cchensh! Managed app permissions are a neat one to show off ☕

@zimeg
zimeg merged commit 4f37711 into main Nov 20, 2026
4 checks passed
@zimeg
zimeg deleted the zimeg-feat-apps-managed-permissions-examples-set branch November 20, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants