POST /API/HANDSET
Create a new handset
REQUEST BODY
| name | Handset name |
|---|---|
| ipaddress [optional] | Handset ipaddress |
| macaddress [optional] | The MAC address string |
| 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 |
| handsetgroup [optional] | The name of any associated handset group. |
| 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 | Not found |
| 406 | SSL must be used |
| 500 | Internal Server Error |
EXAMPLE REQUEST
Example;- POST https://api.calln.com/handset {"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" -H "Authorization: Token authtoken" -X POST -d "{'name':'Jane Doe','phonenumbers':['0393196602','0393196619']}"

