Update customers
Updating agent's customers parameters
Method | update.customers |
---|---|
Description | Updating agent's customers parameters |
Who has access | Partner |
You can update parameters partially. If a data bulk is updated, the transferred bulk will replace an existing one.
Parameters of a request
Title | Type | Required | Valid values | Description |
---|---|---|---|---|
access_token |
string | yes | Authentication session key | |
id |
number | yes | Customer unique ID | |
name |
string | yes | Customer name | |
description |
string | no | Description of a customer | |
monthly_base_limit |
number | no | Monthly base limit. Value is in costs. | |
monthly_base_notify_limit |
number | no | Threshold value of a monthly base limit. When you reach it, a notification is sent to the email specified in the parameter "monthly_base_notify_email" |
|
monthly_base_notify_emails |
array | yes | Maximum 5 emails | Emails used to receive the notifications when a monthly base limit is reached |
monthly_calls_limit |
number | no | Monthly calls limit. Value is in calls count. | |
monthly_calls_notify_limit |
number | no | Threshold value of monthly calls limit. When you reach it, a notification is sent to the email specified in the parameter "monthly_calls_notify_email" |
|
monthly_calls_notify_emails |
array | yes | Maximum 5 emails | Emails used to receive notifications when a monthly calls limit is reached |
daily_calls_limit |
number | no | Daily calls limit. Value is in calls count. | |
daily_calls_notify_limit |
number | no | Threshold value of a daily calls limit. When you reach it, a notification is sent to the email specified in the parameter "daily_calls_notify_email" |
|
daily_calls_notify_emails |
array | yes | Maximum 5 emails | Emails used to receive notifications when a daily calls limit is reached |
JSON request structure
{
"jsonrpc":"2.0",
"id":"number",
"method":"update.customers",
"params":{
"access_token":"string",
"id":"number",
"name":"string",
"description":"string",
"monthly_base_limit":"number",
"monthly_base_notify_limit":"number",
"monthly_base_notify_emails":[
"item"
],
"monthly_calls_limit":"number",
"monthly_calls_notify_limit":"number",
"monthly_calls_notify_emails":[
"item"
],
"daily_calls_limit":"number",
"daily_calls_notify_limit":"number",
"daily_calls_notify_emails":[
"item"
]
}
}
JSON reply structure
{
"jsonrpc":"2.0",
"id":"number",
"result":{
}
}
List of returning errors
Refer to the section "List of errors for the methods with the verb update"