Loading...

PUT /api/users/{userId}

Use this operation when your integration maintains the complete profile of someone who already has fleet access. For example, when a person moves to another team, you can change their device group and time zone in the same request.

First look up the profile by its usr-… ID. Send the same sign-in name in email and include the values you want to retain, such as privileges and access dates. The response returns the saved profile so you can check the new assignment.

Request Details

PUT /api/users/{userId}

The example identifiers are fictional. Use the identifiers returned by your account’s list for the resource you want to look up or change.

Request Parameters

Path parameters

ParameterTypeRequiredDescription
userIdStringRequiredStringYesPublic identifier of the sub-user. Use the usr-… value returned by the user list.

JSON body parameters

ParameterTypeRequiredDescription
nameStringRequiredStringYesSub-user display name.
emailStringRequiredStringYesLogin name. It must be available when creating a profile. Use the existing login when replacing the profile.
passwordStringOptionalStringNoPassword of at least eight characters with uppercase, lowercase and a digit. Write-only. Omit this field to retain the current password.
countryStringRequiredStringYesCountry key from GET /api/users/countries.
timeZoneStringRequiredStringYesID from the time zone list. Recognized IDs such as America/Bogota are also accepted.
groupStringConditionalStringConditionalID of a group or access option. For all devices or an administrator profile, use the ID of the corresponding option.
deviceIdStringConditionalStringConditionalID of a visible tracker. Required when group is omitted and access is limited to the device.
adminDevicesIntegerConditionalIntegerConditionalNumber of device licenses allocated to the administrator profile that manages its own account.
fromDate-timeConditionalDate-timeConditionalStart of the access period. Also send expires to limit access to that period. Use ISO 8601 with Z or a time zone offset.
expiresDate-timeConditionalDate-timeConditionalEnd of the access period specified by from.
privilegesString arrayOptionalString arrayNoProfile privileges. Names are case-sensitive.
descriptionStringOptionalStringNoDescription of the sub-user.
messageStringOptionalStringNoMessage configured for the sub-user.
disabledBooleanOptionalBooleanNoSet to true to disable the sub-user.
disabledMessageStringOptionalStringNoMessage for the disabled sub-user.
tagsString mapOptionalString mapNoTags as string key/value pairs.

Access start and end times are saved to the minute. If you include seconds, the effective start or end is the beginning of that minute.

group or deviceId. For limited access, send the public ID of an account group from GET /api/groups, or a visible tracker ID from GET /api/devices. For access to all devices, use the ID of the (All Devices) option. A device is required when the group is omitted.

For an administrator profile, set group to the ID of one of the two administrator options from GET /api/groups. The Administrator (Manage their own account) option requires adminDevices (integer), the number of device licenses allocated.

privileges (optional array of strings). Names are case-sensitive. Defined values are Edit, SendCommands, CallDevice, SendSMSCommands, SMSAlerts, User_PhonesTracking, User_PhoneTrackingOnce and WhatsAppAlerts. Availability depends on the profile and the account’s services.

Authentication Required

Send the access token in the Authorization: Bearer <token> header. See Authentication.

Requires an administrator with access to Users. Demo users have read access only.

Example Request

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

Example Request Body

{ "name": "Morgan Lee", "email": "dispatch@example.com", "country": "CO", "timeZone": "America/Bogota", "deviceId": "123456789012345" }

Response Parameters

The response returns the saved sub-user with their public ID, status and group or device assignment. Optional fields appear when applicable. The password is write-only and is omitted from the response.

FieldTypePresenceDescription
idStringAlwaysStringAlwaysPublic sub-user ID with the usr- prefix.
nameStringAlwaysStringAlwaysSub-user display name.
emailStringAlwaysStringAlwaysSub-user login name.
countryStringAlwaysStringAlwaysCountry code saved in the profile.
timeZoneStringAlwaysStringAlwaysProfile time zone.
descriptionStringWhen setStringWhen setDescription of the sub-user.
messageStringWhen setStringWhen setMessage configured for the sub-user.
disabledBooleanAlwaysBooleanAlwaysIndicates whether the sub-user is disabled.
disabledMessageStringWhen setStringWhen setMessage configured for a disabled sub-user.
tagsString mapWhen setString mapWhen setTags associated with the profile.
privilegesString arrayWhen setString arrayWhen setNames of assigned privileges.
groupStringWhen setStringWhen setPublic ID of the group or special access profile.
deviceIdStringWhen setStringWhen setTracker ID assigned to a sub-user with access to one device.
adminDevicesIntegerWhen setIntegerWhen setDevice licenses allocated to an administrator who manages their own account.
fromDate-timeWhen setDate-timeWhen setStart of the configured access period.
expiresDate-timeWhen setDate-timeWhen setEnd of the configured access period.
creationDate-timeWhen setDate-timeWhen setProfile creation date and time, when available.
modificationDate-timeWhen setDate-timeWhen setMost recent profile modification date and time, when available.
lastLoginDate-timeWhen setDate-timeWhen setLast sign-in date and time, when available.
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 (excerpt)

{ "id": "usr-NpQrMWxYvK", "name": "Morgan Lee", "email": "dispatch@example.com", "country": "CO", "timeZone": "America/Bogota", "deviceId": "123456789012345", "disabled": false, "success": true, "apiUsage": 1, "apiDailyUsage": 24 }

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 401 if a valid Bearer token is missing.
  • HTTP 400 with errors if you try to change the login name, use an unknown privilege or fail another field rule. If the only issue is an unknown country or time zone, the reason is returned in error.
  • HTTP 400 if the ID is recognized but the sub-user is outside the account or does not exist. HTTP 404 if the route or ID is unrecognized.
  • HTTP 403 if the user lacks the required permission. The reason appears in error.

Example error

{ "success": false, "error": "The user was not found." }
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:24