JSON API » callergroups » callergroups/callers/update
Updates a caller in a caller group.
Input parameters
Requires authentication and the system role privilege.
| Name | Type | Description | Required | Default value | 
|---|---|---|---|---|
| auth_username | String | Authentication username. | Yes | |
| auth_password | String | Authentication password. | Yes | |
| callergroup | Integer | ID of caller group. | Yes | |
| caller_prefix | String | Caller prefix. | Yes | |
| called_min | Integer | Minimum length of called number to match. | Yes | 1 | 
| called_max | Integer | Maximum length of called number to match. | Yes | 100 | 
| description | String | Description. | Yes | |
| id | Integer | ID of a caller in a caller group. | Yes | 
Responses
| Code | Description | 
|---|---|
| 204 | Success. | 
| 400 | Invalid input parameters specified. Check the key and message fields for more details. | 
| 401 | The authentication details provided are invalid. | 
| 402 | Your role does not allow this. | 
| 404 | The caller group or caller does not exist, or you do not have permission to view it. | 
Data returned
No data is returned.
Example: With required parameters
http://enswitch.example.com/api/json/callergroups/callers/update/?auth_username=user;auth_password=password;callergroup=123;caller_prefix=1234567;called_min=1;called_max=100;description=description;id=234{ "responses":[ { "code":"204", "key":"", "message":"OK" } ] }
Change history
| Version | Changes | 
|---|---|
| 4.2 | Function added. | 
