Edit a Phonebook
Edit a phonebook.
Request URL
POST {base_url}/{api_path}/phonebook/update?access_token={access_token}
Request parameters
Parameter | Required | Type | Description |
---|---|---|---|
id | Yes | Integer | The unique ID of the phonebook. Note: You can query the phonebook's ID using Search Specific Phonebooks. |
name | No | String | The name of the phonebook. |
member_select | No | String | Member selection method. Valid value:
|
add_contacts_id_list | No | Array<Integer> | The unique ID(s) of the contact(s) to be added into the
phonebook. Note:
|
del_contacts_id_list | No | Array<Integer> | The unique ID(s) of the contact(s) to be removed from the
phonebook. Note:
|
Response parameters
Parameter | Type | Description |
---|---|---|
errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
errmsg | String | Returned message.
|
Examples
Request example
POST /openapi/v1.0/phonebook/update?access_token=ZzB1UpneFiGbHm7saIpmF8GJ7jVIgu8T HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"id": 6,
"add_contacts_id_list": [
3,6,9
],
"del_contacts_id_list": [
10
]
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}