Slack.Web.Apps.User.Connection (SlackKit v1.0.0-alpha.0)

View Source

Summary

Functions

Updates the connection status between a user and an app.

Functions

update(status, user_id, optional_params \\ %{})

Updates the connection status between a user and an app.

API reference

Rate limit: Tier 2: 20+ per minute
Scopes:

View on docs.slack.dev ↗

Required Params

  • status - The status that should be set for the user. Acceptable values: connected disconnected ex: connected
  • user_id - The ID of the user for the status update. ex: U12345678

Errors the API can return:

  • app_not_found - The app was not found.
  • app_not_subscribed - The app is not subscribed to the required events.
  • user_not_found - Value passed for user_id was invalid.

See the Common Errors guide for errors returned by every Web API method.