| Method | create.group_employees |
|---|---|
| Description | Creating a group of employees |
| Available to | Agent, Client |
Request parameters
| Name | Type | Required | Valid values | Description |
|---|---|---|---|---|
access_token |
string | yes | Authentication session key | |
user_id |
number | no | Unique user identifier of the agent client on behalf of which the request is made Is required for the agentTo obtain a list of client users, you must use the method "get.customer_users" |
|
name |
string | yes | Group name | |
| List of employees in the group | ||||
members |
array | no | List of unique identifiers of employees who are members of group | |
| Setting the group extension number | ||||
group_phone_number |
string | no | Maximum length 5 | Internal group number Depends on the component |
queue_enabled |
boolean | no |
The default value is "false". If all numbers indicated
for this group of employees are busy, then the caller will stand in
queue to redial the phones in the list and will wait
the first available number.
Depends on the component
|
|
channels_count |
number | no | From 1 to 199 |
Default value 1.Number of simultaneous lines when calling Depends on the component
|
Response parameters
| Title | Type | Required | Description |
|---|---|---|---|
id |
number | yes | Unique group identifier |
JSON request structure```json
{ "jsonrpc":"2.0", "id":"number", "method":"create.group_employees", "params":{ "access_token":"string", "user_id":"number", "name":"string", "members":[ "employee_id" ], "group_phone_number":"string", "queue_enabled":"boolean", "channels_count":"number" } }
### JSON response structure```json
{
"jsonrpc":"2.0",
"id":"number",
"result":{
"id":"number"
}
}
List of returned errors
See the section "List of errors for methods with the create verb"