Loading...

PUT /api/devices/{deviceId}

A tracker’s device record holds the details people use to identify and organize it in Plaspy, such as its name, description, and tags. If a van gets a new license plate or moves to a different branch, update the record so your team can still recognize it.

Use the device ID to select the record, then send the fields you want to change. For example, if your company uses license plates as vehicle names, send just the new name. Fields you omit keep their current values.

Request Details

PUT /api/devices/{deviceId}

Request Parameters

Path parameters

ParameterTypeRequiredDescription
deviceIdStringRequiredStringYesTracker identifier in the path. Use the id from the device list.

JSON body parameters

ParameterTypeRequiredDescription
nameStringOptionalStringNoDisplay name of the device. A nonempty name is required.
minStringOptionalStringNoTracker phone number, with at least ten digits and an optional leading plus sign.
descriptionStringOptionalStringNoDescription of the device.
tagsString mapOptionalString mapNoTags as string key/value pairs. On update, send the complete set or {} to clear it.
intervalIntegerOptionalIntegerNoMinutes between phone reports. The value must be positive when phone tracking is active.
noTrackBooleanOptionalBooleanNoSet to true to stop tracking.
expiresDate-timeOptionalDate-timeNoExpiration in ISO 8601 format. Use UTC with Z, an explicit offset or the user’s local time.
removeExpiresBooleanOptionalBooleanNoSet to true to remove the expiration, even if expires is also sent.
markerStringOptionalStringNoMap marker used for the tracker.

Send only the properties to change. An omitted or null property keeps its stored value.

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

PUT /api/devices/123456789012345 HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token} Content-Type: application/json

Example Request Body

{ "name": "Unit East" }

Response Parameters

The response confirms the update with success: true and the tracker’s deviceId.

FieldTypePresenceDescription
deviceIdStringAlwaysStringAlwaysIdentifier of the tracker for this operation.
successBooleanAlwaysBooleanAlwaysIn a successful response, true confirms the operation.
apiUsageIntegerAlwaysIntegerAlwaysUnits charged for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysDaily usage before the units for this request are added.

Example HTTP 200 response

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

Errors

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 tracker is not active in the account or a field is invalid. Check errors for validation errors. HTTP 403 if the user cannot edit devices.

Example error

{ "success": false, "error": "One of the devices was not found in the account." }
Index
Questions?

We answer all support request within 24 business hours approximately, If you have a question that needs an immediate resolution, please contact us by other way.

We answer you in business hours, as soon as possible. We are located in Bogotá, Colombia, time zone (GMT-5).

Last modification: 2026-11-30 11:00:32