Reset E2E Key
documentedReset a user's end-to-end encryption key.
POST /api/v1/users.resetE2EKeyUser Managementno implementation yet0 runsNo 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.chat/api/v1/users.resetE2EKey" \
-X POST \
-H "X-Auth-Token: {{OAUTH2_ACCESS_TOKEN}}" \
-H "X-User-Id: {{X_USER_ID}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"userId": "{{$user_id}}"}' \
-H "x-2fa-code: {{$twofa_code}}" \
-H "x-2fa-method: {{$twofa_method}}"