Zurück

PATCH /api/v1/notifications

Route source: app/api/v1/notifications/route.ts. Access: Portal session cookie; tenantContext. Status codes are read from the route implementation.

PATCH/api/v1/notifications

Zugang

Die Session-Variable in den Beispielen ist ein Platzhalter. Der Browser setzt das echte Sitzungscookie.

Anfrage

JSON-Body gemäß Validierung im Route-Code

The accepted fields and validation are implemented in app/api/v1/notifications/route.ts; parsed by readSchema.

Synthetisches curl-Beispiel
curl -i -X PATCH 'https://portal.rfi-irfos.com/api/v1/notifications' \
  -H "Cookie: $PORTAL_SESSION_COOKIE" \
  -H 'Content-Type: application/json' \
  --data-binary @request.json

Antwort

Der Handler liefert JSON. Die Antwortfelder sind im verlinkten Routencode definiert.

200 400 401 422 503

Die referenzierte Quelldatei enthält die maßgebliche Feldvalidierung und Antwortstruktur.

Fehlercodes

  • 400 · Anfrage oder Eingabevalidierung fehlgeschlagen
  • 401 · Sitzung oder Zugangsdaten fehlen oder sind ungültig
  • 422 · Routenfehler; Details stehen im Handler.
  • 503 · Dienst oder Datenbank ist nicht verfügbar

Beleg im Code

app/api/v1/notifications/route

Lokaler Index↑ ↓ · Enter · Esc