Edit an Extension
Edit extension settings, such as Caller ID name, concurrent registrations, email address, etc.
Request URL
{base_url}/{api_path}/extension/update?token={token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| number | Yes | String | Extension number. Note:
|
| username | No | String | Caller ID name. Note: The following characters are NOT
allowed:
|
| registername | No | String | Registration name. Note:
|
| registerpassword | No | String | Registration password. Note: Only alphanumerics and the following
characters are allowed:
|
| callerid | No | String | Caller ID. Note:
|
| maxregistrations | No | Integer | Maximum concurrent registrations allowed. Valid values: 1-4 |
| loginpassword | No | String | Login password. Note: Only alphanumerics and the following characters are
allowed: ~
^
*
-
_
?Strong password is required by default.
|
| No | String | Email address. Note:
|
|
| mobile | No | Integer | Mobile number. Note:
|
| hasvoicemail | No | String | Whether to enable Enable Voicemail feature or
not. Valid values:
|
| vmsecret | No | Integer | Voicemail password. Note:
|
| enablevmtoemail | No | String | Whether to enable Send Voicemail to Email feature or
not. Valid values:
|
| alwaysforward | No | String | Whether to enable Always Call Forwarding feature or
not. Valid values:
|
| atransferto | No | String | The destination of alwaysforward.Valid values:
|
| atransferext | No | Integer | When atransferto is Extension, the
extension number should be configured. |
| atransferprefix | No | Integer | When atransferto is Mobile Number or
Custom Number, prefix may need to be configured according to
outbound routes.Note:
|
| atransfernum | No | Integer | When atransferto is Custom Number, phone
number must be configured.Note:
|
| noanswerforward | No | String | Whether to enable No Answer Call Forwarding feature or
not. Valid values:
|
| ntransferto | No | String | The destination of noanswerforward.Valid values:
|
| ntransferext | No | Integer | When ntransferto is Extension, the
extension number should be configured. |
| ntransferprefix | No | Integer | When ntransferto is Mobile Number or
Custom Number, prefix may need to be configured according to
outbound routes.Note:
|
| ntransfernum | No | Integer | When ntransferto is Custom Number, phone
number must be configured.Note:
|
| busyforward | No | String | Whether to enable When Busy Call Forwarding feature or
not. Valid values:
|
| btransferto | No | String | The destination of busyforward.Valid values:
|
| btransferext | No | Integer | When btransferto is Extension, the
extension number should be configured. |
| btransferprefix | No | Integer | When btransferto is Mobile Number or
Custom Number, prefix may need to be configured according to
outbound routes.Note:
|
| btransfernum | No | Integer | When btransferto is Custom Number, phone
number must be configured.Note:
|
| allowbeingmonitored | No | String | Whether to enable Allow Being Monitored feature or
not. Valid values:
|
| monitormode | No | String | Monitor mode. Valid values:
|
| ringtimeout | No | String | Ring timeout in seconds. |
| maxduration | No | String | The maximum call duration allowed in seconds. |
| dnd | No | String | Whether to enable DND feature or not. Valid values:
|
| callrestriction | No | String | Whether to enable Outbound Restriction feature or
not. Valid values:
|
| agentid | No | String | The agent ID to be announced in the greeting prompt when
users call to a queue. By default, the parameter is null, which means that the
extension number will be announced. |
| selectoutroute | No | String | The outbound routes that are available to the extension. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| status | String | Request result.
|
Examples
Request example
Set the username of extension 1002 to Amy, keeping other settings unchanged.
POST /api/v2.0.0/extension/update?token=7afa377107feb9566654d5dd3a9a2a93 Content-Type:application/json; charset=utf-8 Host: api.yeastarcloud.com { "number": "1002", "username": "Amy" }
HTTP/1.1 200 OK Server: Boa/0.94.14rc21 Accept-Ranges: bytes Connection: close Content-Type: application/json Access-control-allow-origin: * Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE { "status": "Success" }