🔒 Security

Upsert Punishment Rule

Adds a new punishment rule or updates an existing one with the same min_violations.

post/api/v1/servers/{server_id}/security/punishment-rules

Request

  • Base URL: https://api.notoq.xyz (the document declares no server; this is the origin it was published from)
  • URL: https://api.notoq.xyz/api/v1/servers/{server_id}/security/punishment-rules
  • Auth: HTTP bearer

Path parameters

server_idstring required

Discord Server ID

Request body

min_violationsinteger required

Ab dieser Verstoßzahl greift die Regel (höchste zutreffende Regel gewinnt)

action'warn' | 'mute' | 'kick' | 'ban' required

warn=Verwarnung, mute=Timeout, kick=Kick/Timeout, ban=Ban/Timeout

duration_minutesinteger nullable

Dauer in Minuten (für mute erforderlich; bei kick/ban → Timeout statt echtem Kick/Ban)

Response

Successful Response

successboolean required
dataobject required
messagestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.