New(?) undocumented method to resend an invitation

Open Beginner friendly
#586 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
ruby
Domain
api

Research direction

Start in lib/slack/web/api/endpoints/users_admin.rb, especially the existing users_admin_invite endpoint and its resend parameter. Add the users.admin.resendInvitation endpoint with the invite_id parameter, then verify that the client can call it and that the existing invitation behavior remains distinct.

Written by the indexing model from the issue text.

Description

new feature question

I used to use users_admin_invite with the "resend" param to resend an invitation to a user when the original invitation was expired.
This seems to trigger the "already_in_team_invited_user" error now.

From watching the requests when resending an invite via the https://myworkspace.slack.com/admin/invites I noticed a new(?) endpoint "users.admin.resendInvitation":

URL: https://myworkspace.slack.com/api/users.admin.resendInvitation
Form Data:
token: xoxc-...
invite_id: 1234
_x_reason: admin-invite-actions
_x_mode: online

Can we add this to lib/slack/web/api/endpoints/users_admin.rb ?

Dominant language
Ruby
Stars
1.3k
Forks
222
Avg merge
1d 14h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from slack-ruby/slack-ruby-client

All issues in slack-ruby/slack-ruby-client

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.