---
title: reverseReputation
description: >-
  Take back what each `edit` or `page` event `ref` earned its `account`, as one
  `reversal` entry per event under the same ref, all in one transaction however
  many there are, then give any role a threshold grants. An event is taken back
  once: reversing it again changes nothing. An event not posted yet still gets
  its entry, at 0 points, and scores nothing when it is posted; one that was
  posted and earned `account` nothing (it scored 0, or credited someone else)
  gets none. A reversal lowers a score but never takes away a role the account
  holds.
updated_at: '2026-11-19T21:03:47+01:00'
created_at: '2026-11-19T08:17:07+01:00'
symbol:
  kind: function
  name: reverseReputation
  signatures:
    - >-
      reverseReputation(env: Env$2, reversals: readonly
      [[reference/api/auth/server/Reversal|Reversal]][]): Promise<void>
  parameters:
    - name: env
      type: Env$2
    - name: reversals
      type: 'readonly [[reference/api/auth/server/Reversal|Reversal]][]'
  returns:
    type: Promise<void>
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/auth/src/reputation.ts#L330
---

# reverseReputation

Throws when the site binds no `SVARTZ_DB`, or the write fails.
