Retrieves the admin of a room (requires the view-room-administration
permission).
HTTP Method | URL | Requires Auth |
---|---|---|
GET | /api/v1/rooms.adminRooms.getRoom | yes |
Key | Example Value | Description |
---|---|---|
rid * | 654c9d1ca2f73c7460e1918b | The room ID. |
{% code overflow="wrap" %}
curl -L -X GET 'http://localhost:3000/api/v1/rooms.adminRooms.getRoom?rid=654c9d1ca2f73c7460e1918b' \
-H 'X-User-Id: d26x6zSkaPSe5gCyy' \
-H 'X-Auth-Token: Zu-Z6eKzIIz7MCCRGeHi29bYkXZCJ4SxFC0JAasqm92'
{% endcode %}
{
"_id": "ukFsHiySDhMkQyyyF",
"name": "freightwave",
"fname": "freightwave",
"t": "p",
"msgs": 4,
"usersCount": 1,
"u": {
"_id": "Gd6iymRZBK4C6wqHN",
"username": "bruno.raymundo"
},
"ro": false,
"default": false,
"success": true
}
Any of the following errors can occur:
- Authorization: Requires an authentication token for the request to be made.
- No Permission: Occurs when the authenticated user doesn't have the
view-room-administration
permission. - Missing query parameter: Occurs when the required parameter
rid
is missing.
{% tabs %} {% tab title=" Authorization" %}
{
"success": false,
"error": "unauthorized"
}
{% endtab %}
{% tab title="No Permission" %}
{
"success": false,
"error": "error-not-authorized"
}
{% endtab %}
{% tab title="Missing Query Parameter" %}
{
"success": false,
"error": "not-allowed",
"errorType": "Not Allowed"
}
{% endtab %} {% endtabs %}
Version | Description |
---|---|
2.4.0 | Added |