Autocomplete Team

List the teams whose names match a given pattern.

HTTP MethodURLRequires Auth

GET

/api/v1/teams.autocomplete

Query Parameters

KeyExample ValueDescription

name*

team

The pattern (search filter for team names).

Example Call

curl  -H 'X-Auth-Token: _2u_4MzRroRcnqc59GYUY_Kwgr9HgtZ9HCKn-2aIvMJ' \
      -H 'X-User-Id: FL2fZL4ERhwA3gWiS' \
      -H "Content-type: application/json" \
      'http://localhost:3000/api/v1/teams.autocomplete?name=team'

Example Response

{
  "teams": [
    {
      "_id": "Dgh2xwJ3NFKWvKSqY",
      "name": "team1",
      "fname": "team1",
      "t": "p",
      "teamId": "607e0d9b49d493189836bfac"
    }
  ],
  "success": true
}

Last updated

Rocket.Chat versions receive support for six months after release.