Skip to content

Conversation

@lucassartor
Copy link
Contributor

Proposed changes (including videos or screenshots)

Fix team.addMembers endpoint as it currently doesn't work properly. The API call is adding members to a team's channels but not to the main team room.

Issue(s)

Fixes #22104
ClickUp Task

Steps to test or reproduce

  1. Go To Rocket chat UI;
  2. Click on Create teams;
  3. Create a team;
  4. Call API endpoint to add users to team /api/v1/teams.addMembers.

Further comments

@lucassartor lucassartor requested a review from a team May 27, 2021 19:59
@KevLehman KevLehman merged commit fc726c6 into develop Jun 22, 2021
@KevLehman KevLehman deleted the fix/teams-addMembers branch June 22, 2021 21:39
@sampaiodiego sampaiodiego mentioned this pull request Jun 28, 2021
@vplb
Copy link

vplb commented Jun 29, 2021

I'm not sure if it's related or not, but the API doesn't work for me at all.
Called from CLI, says bad or missing URL.
From browser get: {"status":"error","message":"API endpoint does not exist"}

Others seems ok, can create a Team no problem.

@sampaiodiego
Copy link
Member

@vplb may you share the full command you're running?

you can see the docs for the affected endpoints here https://developer.rocket.chat/api/rest-api/endpoints/teams/add-members

@vplb
Copy link

vplb commented Jun 30, 2021

It is that command exactly.
Here is the last one i attempted:
curl -H "X-Auth-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "X-User-Id: xxxxxxxxxxxxxxxxx" \ -H "Content-type: application/json" \ http://localhost:3000/api/v1/groups.invite \ --cacert "/etc/nginx/encryption/acme.ca/cert.pem" \ -d '{ "roomId": "xxxxxxxxxx", "userId": "xxxxxxxxxx" }'

I found a work around for now on another post, using invite_groups.
Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

calling api endpoint /teams.addMembers does not reflect added users on UI

5 participants