Step 3: Update Networkinterface Record
To update the NetworkInterface record with the device Modem ID, copy the contents of from the GET above. Update the niPhone tag with the phone number you discovered in Step1: Retrieve the telephone number from a device (replace N/A with your device phone number). Change the status of niActivePhone and then remove the id tag.
The values added below are: niActivePhone: true (to indicate this is the active Remote Manager SMS record. There can be more than one NetworkInterface record per device. Only one can have niActivePhone true). niPhone: The phone number of the SIM (discovered in step 1).
PUT /ws/NetworkInterface/26
Payload:
<?xml version="1.0" encoding="UTF-8"?>
<NetworkInterface>
<niRecordStartDate>2011-02-15T21:45:00Z</niRecordStartDate>
<devId>6</devId>
<devVersion>0</devVersion>
<niInterfaceType>0</niInterfaceType>
<cstId>10</cstId>
<grpId>10</grpId>
<niEffectiveStartDate>2011-02-15T20:25:00Z</niEffectiveStartDate>
<niTerminated>false</niTerminated>
<niPhone>19522213895</niPhone>
<niActivePhone>true</niActivePhone>
</NetworkInterface>