Back

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

Access

The session variable in examples is a placeholder. The browser supplies the real session cookie.

Request

JSON body follows validation in route source

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

Synthetic curl example
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

Response

The handler returns JSON. Response fields are defined in the linked route source.

200 400 401 422 503

The linked source file contains the authoritative field validation and response structure.

Error codes

  • 400 · Request or input validation failed
  • 401 · Session or credentials are missing or invalid
  • 422 · Route error; details are in the handler.
  • 503 · Service or database is unavailable

Code evidence

app/api/v1/notifications/route

Local index↑ ↓ · Enter · Esc