Update User Device

POST/?object=device&action=update

Request URL

POST
https://uc.hopdial.com/ns-api/?object=device&action=update

Send your access token in the Authorization: Bearer header. Body parameters are sent as application/x-www-form-urlencoded. New to the API? Start with authentication and rate limits.

Parameters

NameTypeDescription
uid
requiredbody
string

This value should be "<device>@<domain>"

device
requiredbody
string

This value should be "sip:<device>@<domain>"

nat_wan
optionalbody
string

Values are "automatic" or "none". "automatic" forces proxying the media through HopDial where "none" will attempt to bypass the media directly to our carriers

Default: automatic

authentication_key
optionalbody
string

Any alphanumeric key. Password the SIP user agent uses to register to the HopDial platform

Default: Random 8 alphanumeric key

expires
optionalbody
integer (int32)

The amount of time between registration attempts before HopDial considers unregistered

Default: 30

call_processing_rule
optionalbody
string

List of values separated by spaces. Possible values could be "Record" which forces HopDial to record any call to this device, "ForceNotify" which will force notify SIP packets to inform devices which can not subscribe to MWI

termination_allowed
optionalbody
string

Must be "yes" or "no". Determines if device can receive inbound calls

origination_allowed
optionalbody
string

Must be "yes" or "no". Determines if device can is allowed to make outbound calls

authenticate_invite
optionalbody
string
check-sync
optionalbody
string

Must be "yes" or "no"

Default: no

Example request

text
curl https://uc.hopdial.com/ns-api/ \
   -H 'Authorization: Bearer 7bet078rqljh451l31uh34lsd0f80dsf' \
   -d object='device' \
   -d action='update' \
   -d device='sip:[email protected]' \
   -d uid='[email protected]' \
   -d expires='180'

Responses

200 · application/xml

400 · application/json
{}

More Device endpoints

Manage the SIP devices registered to each user.

Need a Client ID and Client Secret or help with this endpoint? Contact HopDial support or call (866) 305-0407.