---
title: postReputation
description: >-
  Record `event` in the ledger, weighed with the site's weights, and give its
  account any role a threshold now grants. Posting an event again, as a repeated
  webhook delivery or a poll that reads it again would, scores nothing more, and
  gives any role the first post failed to give. An event whose recipient has no
  account changes nothing.
updated_at: '2026-11-19T21:03:47+01:00'
created_at: '2026-11-19T08:17:07+01:00'
symbol:
  kind: function
  name: postReputation
  signatures:
    - >-
      postReputation(env: Env$2, event:
      [[reference/api/auth/server/ReputationEvent|ReputationEvent]]):
      Promise<void>
  parameters:
    - name: env
      type: Env$2
    - name: event
      type: '[[reference/api/auth/server/ReputationEvent|ReputationEvent]]'
  returns:
    type: Promise<void>
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/auth/src/reputation.ts#L297
---

# postReputation

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