Fuselage
Powered By GitBook
Autocomplete User
List the user whose names match a given pattern.
URL
Requires Auth
HTTP Method
/api/v1/users.autocomplete
yes
GET

Parameters

Argument
Example
Required
selector
{ "exceptions" : []}
Required

Example Call

1
curl -H 'X-Auth-Token: _2u_4MzRroRcnqc59GYUY_Kwgr9HgtZ9HCKn-2aIvMJ' \
2
-H 'X-User-Id: FL2fZL4ERhwA3gWiS' \
3
-H "Content-type: application/json" \
4
'http://localhost:3000/api/v1/users.autocomplete'
Copied!

Result

Success

1
{
2
"items": [
3
{
4
"_id": "6esQ6cpqSQYvoLTvC",
5
"username": "Aaron.altamirano",
6
"status": "offline",
7
"name": "Aaron Altamirano ",
8
"nickname": "[email protected]"
9
},
10
{
11
"_id": "AySWYsyzToxy3239z",
12
"username": "Balazs.Nemethi",
13
"status": "offline",
14
"name": "Balázs Némethi"
15
},
16
{
17
"_id": "gxcJTYapi5mPxuAme",
18
"username": "Bruno.Solis",
19
"status": "offline",
20
"name": "Bruno Solis",
21
"avatarETag": "ZAHMxLQ6bW426Knwm"
22
},
23
{
24
"_id": "kvqbntLso8y2dEx7C",
25
"username": "Ivan.Belousov",
26
"status": "offline",
27
"name": "Ivan"
28
},
29
{
30
"_id": "AkFjhgJFHAhNK3e6o",
31
"status": "offline",
32
"name": "Karina Monarkh",
33
"username": "Karina"
34
},
35
{
36
"_id": "M3ajjGeyg8SfKXopd",
37
"username": "Rucks_guest2",
38
"status": "offline",
39
"name": "Rucks_guest2",
40
"nickname": "anonymous3"
41
}
42
],
43
"success": true
44
}
Copied!

Errors

The following error can occur upon the endpoint.‌
    Authorization: Requires an authentication token for the request to be made.
    Selector Param: Requires selector param for the request to be made.
Authorization
Selector Param
1
{
2
"status": "error",
3
"message": "You must be logged in to do this."
4
}
Copied!
1
{
2
"success": false,
3
"error": "The 'selector' param is required"
4
}
Copied!
Last modified 19d ago
Export as PDF
Copy link