Fuselage
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

Headers

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)

Query Parameters

Argument
Example
Required
Description
name
data-loss-prevention
Required
Name of the room

Example Call

1
curl --location --request GET 'http://localhost:3000/api/v1/rooms.autocomplete.availableForTeams?name=data-loss-prevention\
2
--header 'X-Auth-Token: myauth-token' \
3
--header 'X-User-Id: myuser-name'
Copied!

Result

Success

1
{
2
"items": [
3
{
4
"_id": "osvTu9BnJuSiC8b8M",
5
"name": "data-loss-prevention",
6
"fname": "data-loss-prevention",
7
"t": "p"
8
}
9
],
10
"success": true
11
}
Copied!

Errors

The following error can occur upon the endpoint.
  • Authorization: Requires an authentication token for the request to be made.
Authorization
1
{
2
"status": "error",
3
"message": "You must be logged in to do this."
4
}
Copied!
Last modified 2mo ago
Export as PDF
Copy link
Edit on GitHub