Autocompletes room name available for conversion to team
HTTP Method | URL | Requires Auth |
---|---|---|
GET | /api/v1/rooms.autocomplete.availableForTeams | yes |
Key | Example Value | Description |
---|---|---|
name * | data-loss-prevention | Name of the room. |
{% code overflow="wrap" %}
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'
{% endcode %}
{
"items": [
{
"_id": "osvTu9BnJuSiC8b8M",
"name": "data-loss-prevention",
"fname": "data-loss-prevention",
"t": "p"
}
],
"success": true
}
The following error can occur:
- Authorization: Requires an authentication token for the request to be made.
{% tabs %} {% tab title=" Authorization" %}
{
"status": "error",
"message": "You must be logged in to do this."
}
{% endtab %} {% endtabs %}