Create a Unit
Last updated
Rocket.Chat versions receive support for six months after release.
HTTP Method | URL | Requires Auth |
---|---|---|
Key | Example Value | Description |
---|---|---|
Version | Description |
---|---|
POST
/api/v1/livechat/units
unitData
*
{ "unitdata": {...} }
The object containing the unit data.
name
*
unitxx2
The name of the unit that you are creating.
visibility
*
public
The visibility of the unit. For example, public
or private
.
unitMonitors
*
"unitMonitors": [{...}]
The object containing the unit monitors information.
monitorId
*
GT67Tv6x5p5y5xZWN
The monitor ID that you want to add to the unit.
username
*
testerio
The user name of the monitor.
unitDepartments
*
"unitDepartments": [{...}]
The object containing the department information.
departmentId
*
CgM4vfNNtj8t4QEMd
The department ID that you want to add to the unit.
4.2.0
Added