Loading...

DELETE /api/users/{userId}

When someone leaves your fleet team, an administrator with access to Users can remove their sub-user profile from the Plaspy account. Find the person by sign-in name in the user list and copy that profile’s usr-… ID.

Send that ID in the request path. A success value of true confirms that the sub-user was removed from the account. The devices assigned to that person stay in the fleet.

Request Details

DELETE /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.

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

DELETE /api/users/{userId} HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token}

Response Parameters

The API returns success: true and usage counters after the sub-user is removed from the account.

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

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.
  • HTTP 401 if a valid Bearer token is missing.
  • 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:27