description |
---|
Lists all available custom user's status. |
URL | Requires Auth | HTTP Method |
---|---|---|
/api/v1/custom-user-status.list |
yes |
GET |
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
http://localhost:3000/api/v1/custom-user-status.list
{
"statuses": [
{
"_id": "oGxJ2irQcPkgFLGef",
"name": "status 1",
"statusType": "busy",
"_updatedAt": "2019-12-09T20:26:06.477Z"
},
{
"_id": "d3TjnQgKWttgaW9Hh",
"name": "status 2",
"statusType": "online",
"_updatedAt": "2019-12-09T20:25:10.884Z"
}
],
"count": 2,
"offset": 0,
"total": 4,
"success": true
}
The following error can occur upon the endpoint.
- Authorization: Requires an authentication token for the request to be made.
{% tabs %} {% tab title=" Authorization" %}
{
"success": false,
"error": "unauthorized"
}
{% endtab %} {% endtabs %}
Version | Description |
---|---|
2.4.0 | Added |