Sign in

Reset TOTP

documented

Reset the Time-based One-Time Password for a user.

POST /api/v1/users.resetTOTPUser Managementno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$ROCKET_BASE_URL}}/api/v1/users.resetTOTP" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Auth-Token: {{OAUTH2_ACCESS_TOKEN}}" \
  -H "X-User-Id: {{ROCKET_USER_ID}}" \
  -H "x-2fa-code: {{$twofa_code}}" \
  -H "x-2fa-method: {{$twofa_method}}" \
  -d '{"userId": "{{$target_user_id}}"}'