---
title: suspend
description: >-
  Suspend the account that holds or held `handle` until `until`, or for good
  without it, with `reason`, which the account reads. It replaces any suspension
  in force. `actor` is the signed-in moderator, from `readAccount`; check their
  permission first. Refused without writing anything for an admin and for the
  actor's own account. Throws without `SVARTZ_DB`.
updated_at: '2026-11-19T12:10:41+01:00'
created_at: '2026-11-19T12:10:41+01:00'
symbol:
  kind: function
  name: suspend
  signatures:
    - >-
      suspend(env: Env, actor:
      Pick<[[reference/api/auth/server/Account|Account]], "id" | "handle">,
      options: { handle: string; reason: string; until?: Date }):
      Promise<[[reference/api/auth/server/SuspendResult|SuspendResult]]>
  parameters:
    - name: env
      type: Env
    - name: actor
      type: 'Pick<[[reference/api/auth/server/Account|Account]], "id" | "handle">'
    - name: options
      type: '{ handle: string; reason: string; until?: Date }'
  returns:
    type: 'Promise<[[reference/api/auth/server/SuspendResult|SuspendResult]]>'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/auth/src/suspensions.ts#L94
---

# suspend
