What a factory reset would delete for this user (admin only).
GET
/api/admin/users/{id}/reset-preview
const url = 'https://api.tradr.cloud/api/admin/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reset-preview';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tradr.cloud/api/admin/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reset-previewAdmin-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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”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).