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

Latest commit

 

History

History
40 lines (30 loc) · 1.3 KB

File metadata and controls

40 lines (30 loc) · 1.3 KB

Get a Unit

Get details of a specific unit.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/units/:unitIdyes

{% hint style="info" %} Permission required: manage-livechat-units {% endhint %}

Path Variables

KeyExample ValueDescription
unitId*sriw2wmP2Zz2pPrreThe unit ID.

Example Call

{% code overflow="wrap" %}

curl --location --request GET 'http://localhost:3000/api/v1/livechat/units/sriw2wmP2Zz2pPrre \
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

{% endcode %}

Example Response

{
    "_id": "LnM2rzbknjYSkkd5p",
    "name": "Sales Unit",
    "visibility": "public",
    "type": "u",
    "numMonitors": 1,
    "numDepartments": 2,
    "_updatedAt": "2022-09-15T11:44:15.721Z",
    "success": true
}