Loading...

POST /api/devices/{deviceId}/restore

Restoring a device brings the record of a retired tracker back into use on the account. For example, if you reinstall a unit that was in storage, you can select it from the deleted devices list and return it to the active fleet.

Use the tracker ID shown in that list for this request. The tracker code must be free and the account must have an available licence. Once Net Domain Technologies confirms the restore, you can find the tracker in the active device list again.

Request Details

POST /api/devices/{deviceId}/restore

Request Parameters

Path parameters

ParameterTypeRequiredDescription
deviceIdStringRequiredStringYesTracker ID from the deleted-device list.

Send the identifier in the path and leave the request body empty.

Authentication Required

You need access to the devices page and must be an account administrator. Demo users cannot make changes.

Send a valid bearer token in the Authorization header. See Authentication.

Example Request

POST /api/devices/123456789012345/restore HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token}

Response Parameters

success: true confirms that the tracker has been reactivated. You can look it up using GET /api/devices.

FieldTypePresenceDescription
successBooleanAlwaysBooleanAlwaysIn a successful response, true confirms the operation.
apiUsageIntegerAlwaysIntegerAlwaysUnits charged for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysAPI units the user had used today before this request.

Example HTTP 200 response

{ "success": true, "apiUsage": 1, "apiDailyUsage": 24 }

Errors

Restoring a deleted tracker uses one unit from the user’s allowance. Because the tracker is still outside the visible device list when the request starts, the restore response omits apiDeviceDailyUsage. When the user’s allowance is exhausted, the API returns HTTP 400 with success set to false.

Example of error — Your user has reached its daily API request limit of 4000 requests (used 4000). The limit resets at 00:00 UTC.

FieldTypePresenceDescription
successBooleanDepends on the errorBooleanDepends on the errorIn the operation errors shown here, the value is false.
errorStringDepends on the errorStringDepends on the errorMessage explaining why the request was rejected.
errorsObjectIn field validation errorsObjectIn field validation errorsIn a validation response, maps fields to their messages. The response shape depends on the error.

HTTP 400 if the device is not among the account’s deleted trackers, the code is in use, or licence capacity is exhausted. If the code is in use, check DeviceId in errors. HTTP 403 if the user cannot restore devices.

Example error

{ "success": false, "error": "One of the devices was not found in the account." }
Index
Last modification: 2026-11-30 22:50:44