| Method | update.group_contacts |
|---|---|
| Description | Editing an Address Book Contact Group |
| Available to | Agent, Client |
Partial updating is possible. If the data array is updated, the transferred array will completely replace the existing one.
Request parameters
| Title | Type | Required | Description |
|---|---|---|---|
access_token |
string | yes | Authentication session key |
id |
number | yes | Unique address book contact group identifier |
user_id |
number | no | Unique user identifier of the client agent 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 | Contact group name |
members |
array | no | A list of unique contact IDs that are members of the group. The list of contacts can be obtained using the "get.contacts" method. |
JSON request structure```json
{ "jsonrpc":"2.0", "method":"update.group_contacts", "id":"number", "params":{ "access_token":"string", "id":"number", "user_id":"number", "name":"string", "members":[ "contact_id" ] } }
### JSON response structure```json
{
"jsonrpc":"2.0",
"id":"number",
"result":{
}
}
List of returned errors
See the section "List of errors for methods with the update verb"