PUT /API/HANDSET/{ID}
Update the details for a single handset.
REQUEST BODY
| id | Handset id |
|---|---|
| name optional | Handset name |
| ipaddress optional | Handset ipaddress |
| phonenumbers optional | Handset phonenumbers as string array |
| notes optional | Handset notes |
| enabled optional | Handset enabled |
| recordinbound optional | Handset recordinbound boolean |
| recordoutbound optional | Handset recordoutbound boolean |
| recordinternal optional | Handset recordinternal boolean |
| minimumcalllengthseconds optional | Handset minimumcalllengthseconds integer |
| overlaytonewhilepaused optional | Handset notes |
| whendisabledrecordinternalwithenabledhandsets optional | Handset enabled boolean |
| transcriptionenabled [optional] | transcription enabled boolean |
RESULT CODE
| 200 | OK |
|---|---|
| 400 | Bad request |
| 401 | Unauthorized |
| 404 | Handset not found |
| 406 | SSL must be used |
| 500 | Server Error |
EXAMPLE REQUEST
Example;- PUT https://api.calln.com/handset {"id":359124,"name":"Jane2","ipaddress":"10.16.1.69","macaddress":"0004F2BEA47D","phonenumbers":["0393196602","0393196619"],"useragent":"PolycomVVX-VVX_1500-UA/4.0.10.0689_0004f2bea57e","notes":"notes added","enabled":true,"recordinbound":false,"recordoutbound":false,"recordinternal":true,"minimumcalllengthseconds":35,"overlaytonewhilepaused":true,"whendisabledrecordinternalwithenabledhandsets":false} Result;- 200 (OK)
USING CURL
curl "https://api.calln.com/api/handset/{id}" -H "Authorization: Token authtoken" -X PUT -d "{'name':'Jane Doe','phonenumbers':['0393196602','0393196619']}"

