Standard APIsConnectivity ManagementAPI EndpointsEmbedded SIM Including Consumer eSIMProfile To Set Fallback Attribute

API Reference

Set the Fallback Attribute (for eUICC)

POST /devices/profile/actions/setfallbackattribute

Uses and Requirements

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.

Request Components

HTTP Request:

POST https://thingspace.verizon.com/api/m2m/v1/devices/profile/actions/setfallbackattribute

Resource Path and Query Parameters

Resource Path and Query Parameters

You must include the account name in the path.

Parameter NameData TypeDescription
accountname requiredstringThe name of the account for which you want a list of states and services. An account name is usually numeric, and must include any leading zeros.

Header Parameters

The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token, and must set the content-type to JSON.

Parameter NameData TypeDescription
Authorization requiredstringHTTP Authorization bearer token.
VZ-M2M-Token requiredstringA valid session token returned by POST /session/login.
Content-Type requiredstringMust be application/json.

Request Parameters

ParameterData TypeDescription
devices requiredarrayAn array of deviceIds. Each deviceId will contain: id kind
idstringThe numeric ID of the device.
kindstringThe the type of device ID represented by the ID value. This could be: imei iccid eid
accountName requiredstringThe name of the account.
carrierNamestringThe carrier providing cellular network access.

Example Body Request

{
   "devices":[
      {
         "deviceIds":[
            {
               "id":"15-digit IMEI",
               "kind":"imei"
            },
            {
               "id":"32-digit EID",
               "kind":"eid"
            }
         ]
      }
   ],
   "accountName":"0000123456-00001",
   "carrierName":"Verizon Wireless"
}

Success Responses

Status 200

A successful response shows a system generated request ID to track the request.

Example Response:

{
  "requestId": "d1f08526-5443-4054-9a29-4456490ea9f8"
}

Callback Response

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"
      }
   }
}

Callback Parameters

ParameterData TypeDescription
usernamestringThe username making the request.
passwordstringThe password associated with the username.
requestIdstringThe requestId being viewed. This is a system generated value from the request above.
DevicearrayAn array of identifiers available for a specific device. Each identifier will contain: identifier kind
IdentifierstringThe numeric ID of the device.
KindstringThe the type of device ID represented by the ID value. This could be: imei iccid mdn eid
DeviceProfileServicearrayContains the SetFallbackAttribute, status and number of callback records returned.
SetFallbackAttributearrayContains the DeviceIdentifierCollection and status of the request.
deviceIdentifierCollectionarraySimilar to deviceIds above, but this lists the devices responding.
euiccStatusstringThis 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.
euiccStatusCodestringThe system generated status code for an eUICC device.
euiccStatusDescstringDescription of the eUICC status code.
statusstringThe status of the deviceResponse.
callbackCountstringThe number of responses for deviceResponse.
maxCallbackThresholdstringThe maximum number of responses for deviceResponse found.

Failure Responses

Status 400

All error messages are returned in this format:

{
  "errorCode": "error code string",
  "errorMessage": "error message string"
}

On this page