POST /devices/profile/actions/setfallbackattribute
During normal operations a device will make queries to profile information using the network connection. Setting the fall back attribute to "true" instructs the device to use profile infomration that is stored on the device when a network connection is unavailable.
The request header must set the content-type to JSON, contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.
Parameter Name | Data Type | Description |
---|---|---|
Authorization required |
string | HTTP Authorization bearer token: |
VZ-M2M-Token required |
string | A valid session token: |
Content-Type required |
string | Must be application/json: |
POST https://thingspace.verizon.com/api/m2m/v1/devices/profile/actions/setfallbackattribute
Parameter | Data Type | Description |
---|---|---|
devices |
array | An array of deviceIds. Each deviceId will contain:
|
id |
string | The numeric ID of the device. |
kind |
string | The the type of device ID represented by the ID value. This could be:
|
accountName required |
string | The name of the account. |
carrierName | string | The carrier providing cellular network access. |
Example request:
{
"devices":[
{
"deviceIds":[
{
"id":"15-digit IMEI",
"kind":"imei"
},
{
"id":"32-digit EID",
"kind":"eid"
}
]
}
],
"accountName":"0000123456-00001",
"carrierName":"Verizon Wireless"
}
Status 200
A successful response shows a system generated request ID to track the request.
Example Response:
{
"requestId": "d1f08526-5443-4054-9a29-4456490ea9f8"
}
These endpoints send responses asynchronously. In order to read the results a callback is required.To learn more about callback, please visti About Callback Services.
Example callback response:
{
"username":"username",
"password":"password",
"RequestId":"d1f08526-5443-4054-9a29-4456490ea9f8",
"Device":[
{
"Kind":"iccid",
"Identifier":"20-digit ICCID"
},
{
"Kind":"eid",
"Identifier":"32-digit EID"
}
],
"Data":{
"Data":{
"DeviceProfileService":{
"SetFallbackAttribute":{
"DeviceIdentifierCollection":[
{
"Kind":"iccid",
"Identifier":"20-digit ICCID"
},
{
"Kind":"eid",
"Identifier":"32-digit EID"
}
],
"EuiccStatus":"EXECUTED_SUCCESS",
"EuiccStatusCode":"1.2.365",
"EuiccStatusDesc":"EUICC device profile has been updated"
}
},
"Status":"SUCCESS",
"CallbackCount":"1",
"MaxCallbackThreshold":"4"
}
}
}
Parameter | Data Type | Description |
---|---|---|
username |
string | The username making the request. |
password |
string | The password associated with the username. |
requestId | string | The requestId being viewed. This is a system generated value from the request above. |
Device |
array | An array of identifiers available for a specific device. Each identifier will contain:
|
Identifier |
string | The numeric ID of the device. |
Kind |
string | The the type of device ID represented by the ID value. This could be:
|
DeviceProfileService | array | Contains the SetFallbackAttribute, status and number of callback records returned. |
SetFallbackAttribute | array | Contains the DeviceIdentifierCollection and status of the request. |
deviceIdentifierCollection | array | Similar to deviceIds above, but this lists the devices responding. |
euiccStatus | string | This shows how the device, or devices, has responded to the request. eUICC is embedded universal integrated circuit card and refers to the SIM card for the device. For more information, visit Working with eUICC Devices. |
euiccStatusCode | string | The system generated status code for an eUICC device. |
euiccStatusDesc | string | Description of the eUICC status code. |
status | string | The status of the deviceResponse. |
callbackCount | string | The number of responses for deviceResponse. |
maxCallbackThreshold | string | The maximum number of responses for deviceResponse found. |
All error responses will be in the following format
{
"errorCode": "The 3-digit HTML error code",
"errorMessage": "string"
}