POST /devices/actions/restart
Performs a device reboot or a factory reset on the modem portion of the device.
This API is available to all customers with LwM2M certified devices with a bundle SKU.
This API uses a list of device identifiers (for example, MDNs, MSISDNs, or IMEIs or ICCIDs) and the option to either reboot or factory reset the device.
The API returns three callbacks after a synchronous response that includes the transaction ID:
POST https://thingspace.verizon.com/api/diagnostics/v1/devices/actions/restart
None.
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 Name | Data Type | Description |
---|---|---|
Authorization required |
string | HTTP Authorization bearer token. |
VZ-M2M-Token required |
string | A valid session token returned by POST /api/m2m/v1/session/login. |
Content-Type required |
string | Must be application/json . |
Parameter Name | Data Type | Description |
---|---|---|
accountName required |
string | The name of the account. An account name is usually numeric, and must include any leading zeros. |
devices required |
array of devices objects | The devices for which you want to perform a factory reset or reboot. |
device.id required |
string | A device identifier value. |
device.kind required |
string | Type of identifier:
|
action required |
string | The action you want to take on the device. For example, “factory_reset” or “reboot”. |
POST /diagnostics/v1/devices/actions/restart
{
"accountName":"0642233522-00003",
"action":"reboot",
"devices":[{
"id":"355154080648401",
"kind":"IMEI"
}
]
}
Status 200
Parameter Name | Data Type | Description |
---|---|---|
createdOn required |
string($date-time) | The date and time of when this request was created. |
transactionID required |
string | The transaction ID of the diagnostics service that you started. |
status required |
string | Status of the request. |
{
"createdOn": "2019-09-10T19:05:33.330579352Z",
"transactionID": "9c7bb124-11f5-4ff3-8a88-0eec1ba99205",
"status": "FACTORY_RESET_PENDING"
}
Parameter Name | Data Type | Description |
---|---|---|
accountName | string | The name of the account for which you are running Diagnostic Services. An account name is usually numeric, and must include any leading zeros. |
action | string | The action you took on the device. |
action.name | string | The name of the action you requested. |
action.status | string | The status of the action you requested. Valid values include:
|
action.updatedOn | string($date-time) | The date and time the status was updated. |
createdOn | string($date-time) | The date and time when this request was created. |
device | array of objects | The device on which you are performing a factory reset or a reboot. |
device.id | string | A device identifier value. |
device.kind | string | Type of identifier:
|
error | string | The error code and error message. |
transactionID | string | The transaction ID of the device that you rebooted or performed a factory reset. |
{
"accountName":"0642233522-00003",
"action": {
"name":"factory_reset",
"status":"FACTORY_RESET_INPROGRESS",
"updatedOn":"2020-02-21T20:54:16.263Z"
},
"createdOn":"2020-02-21T20:54:16.263Z",
"device":{
"id":"355154080648401",
"kind":"IMEI"
},
"error":{
"errorCode": "",
"errorMessage": ""
},
"transactionID":"7c2d1d71-0b50-4d8a-ab13-aeb733d5e909"
}
{
"accountName":"0642233522-00003",
"action":{
"name":"reboot",
"status":"REBOOT_FAILURE",
"updatedOn":"2020-02-21T20:54:16:263z"
},
"device":{
"id":355154080648401,
"kind":"IMEI"
},
"error":{
"errorCode":"INTERNAL_SYSTEM_ERROR",
"errorMessage":"9000, Internal system error"
},
"transactionID":"7c2d1d71-0b50-4d8a-ab13-aeb733d5e909"
}
Status 400 All error messages are returned in this format:
{
"errorCode": "error code string",
"errorMessage": "error message string"
}
Error codes and messages are listed on the Error Codes page, along with explanations and suggestions for corrective actions.