PATCH /api/v1/{entity}/{id}
Route source: app/api/v1/[entity]/[id]/route.ts. Access: Portal session cookie; tenantContext. Status codes are read from the route implementation.
PATCH
/api/v1/{entity}/{id}Zugang
Die Session-Variable in den Beispielen ist ein Platzhalter. Der Browser setzt das echte Sitzungscookie.
Anfrage
JSON-Body gemäß Validierung im Route-Code
| Pfad | Route-Details |
|---|---|
path · entity | required · {"type":"string"} |
path · id | required · {"type":"string"} |
The accepted fields and validation are implemented in app/api/v1/[entity]/[id]/route.ts; parsed by assetBody, statusBody.
Synthetisches curl-Beispiel
curl -i -X PATCH 'https://portal.rfi-irfos.com/api/v1/findings/00000000-0000-4000-8000-000000000001' \
-H "Cookie: $PORTAL_SESSION_COOKIE" \
-H 'Content-Type: application/json' \
--data-binary @request.jsonAntwort
Der Handler liefert JSON. Die Antwortfelder sind im verlinkten Routencode definiert.
200
Die referenzierte Quelldatei enthält die maßgebliche Feldvalidierung und Antwortstruktur.
Fehlercodes
Für diese Methode führt das OpenAPI-Inventar keinen eigenen Fehlerstatus auf.
Beleg im Code
app/api/v1/[entity]/[id]/route