Skip to content
These docs describe Tradr v0.14.0. Running an older release? Check the release notes for what changed.

What a factory reset would delete for this user (admin only).

GET
/api/admin/users/{id}/reset-preview
curl --request GET \
--url https://api.tradr.cloud/api/admin/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reset-preview

Admin-gated (403 ADMIN_REQUIRED). Read-only. Returns the row counts a factory reset would remove, split into tradingData (always removed) and settings (removed only when the reset is requested with removeSettings: true). Both halves are always counted, so a client can show what including settings would add without a second request. Counts are a snapshot and are not a promise about a later reset — POST .../reset re-counts from its own deletes.

id
required
string format: uuid

AdminResetPreview — { userId, email, tradingData, settings }.

VALIDATION_ERROR — id is not a UUID.

Not authenticated.

ADMIN_REQUIRED — authenticated but not an admin.

NOT_FOUND — no such user.

Admin rate limit reached (60 / 60 s per user).