Room name autocomplete for team
Autocompletes room name available for conversion to team
URL | Requires Auth | HTTP Method |
---|---|---|
api/v1/rooms.autocomplete.availableForTeams | YES | GET |
Argument | Example | Required | Description |
---|---|---|---|
X-User-Id | myuser-name | Required | Your username hash (returned after you log in through the API) |
X-Auth-Token | myauth-token | Required | Your token (returned after you log in through the API) |
Argument | Example | Required | Description |
---|---|---|---|
name | data-loss-prevention | Required | Name of the room |
curl --location --request GET 'http://localhost:3000/api/v1/rooms.autocomplete.availableForTeams?name=data-loss-prevention\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'
{
"items": [
{
"_id": "osvTu9BnJuSiC8b8M",
"name": "data-loss-prevention",
"fname": "data-loss-prevention",
"t": "p"
}
],
"success": true
}
The following error can occur upon the endpoint.
- Authorization: Requires an authentication token for the request to be made.
Authorization
{
"status": "error",
"message": "You must be logged in to do this."
}
Last modified 1yr ago