Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
54 lines (41 loc) · 1.5 KB

autocomplete-room-name-for-team.md

File metadata and controls

54 lines (41 loc) · 1.5 KB

Autocomplete Room Name for Team

Autocompletes room name available for conversion to team

HTTP MethodURLRequires Auth
GET/api/v1/rooms.autocomplete.availableForTeamsyes

Query Parameters

KeyExample ValueDescription
name*data-loss-preventionName of the room.

Example Call

{% 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 %}

Example Response

Success

{
    "items": [
        {
            "_id": "osvTu9BnJuSiC8b8M",
            "name": "data-loss-prevention",
            "fname": "data-loss-prevention",
            "t": "p"
        }
    ],
    "success": true
}

Errors

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 %}