> For the complete documentation index, see [llms.txt](https://apidocs.api19.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.api19.com/sip/edit-sip-device.md).

# Edit SIP Device

<table data-header-hidden><thead><tr><th width="152.09088134765625"></th><th width="136.72723388671875"></th><th></th></tr></thead><tbody><tr><td>Argument</td><td>Required</td><td>Type</td></tr><tr><td>key</td><td>yes</td><td>api key</td></tr><tr><td>id</td><td>yes</td><td>device id</td></tr><tr><td>name</td><td>yes</td><td>string. (nickname for the device)</td></tr><tr><td>password</td><td>yes</td><td>string</td></tr><tr><td>device_type_server</td><td>yes</td><td>yes/no <br>if yes means that device type is phone/client<br>if no means that is server</td></tr><tr><td>callerid</td><td>no</td><td>10/11 digit carrierid ( force the caller id when device dials out)</td></tr><tr><td>username</td><td>yes</td><td>string. unique (eg adrian_sip_one)</td></tr><tr><td>maxclients</td><td>yes</td><td>integer. (maximum numbers of sip devices that can connect at the same time)</td></tr><tr><td>voicemail_check</td><td>yes</td><td>integer. must be a voicemail id. <br>(check for voicemail on this device by dialing *97)</td></tr><tr><td>extension_group</td><td>no</td><td>integer (must be an internal call group id)<br>(group together sip devices for internal extension calling)</td></tr><tr><td>extension</td><td>yes</td><td>int internal extension 3 or 4 digits</td></tr></tbody></table>

Call example : <br>

```
 curl -X POST https://v1.api19.com/sip/device/edit \
 -d 'key=your-key' \
 -d 'id=1234 \
 -d 'name=sipdev1' \
 -d 'password=dontusebadpasswords' \
 -d 'device_type_server=no' \
 -d 'username=user_one' \
 -d 'maxclients=2' \
 -d 'voicemail_check=2345' \
 -d 'extension_group=1234' \
 -d 'extension=123'
```

Json response:&#x20;

```
{
    "status": "ok",
    "data": {
        "status": "ok",
        "data": {
            "message": "ok",
            "verbose": ""
        }
    }
}
```
