POST /api/v1/compliance/custom-tests
Route source: app/api/v1/compliance/custom-tests/route.ts. Access: Portal session cookie; tenantContext. Status codes are read from the route implementation.
POST
/api/v1/compliance/custom-testsZugang
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 |
|---|---|
query · framework | optional · {"type":"string"} |
The accepted fields and validation are implemented in app/api/v1/compliance/custom-tests/route.ts; parsed by bodySchema.
Synthetisches curl-Beispiel
curl -i -X POST 'https://portal.rfi-irfos.com/api/v1/compliance/custom-tests' \
-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 400 401 403 404 409 422 503
Die referenzierte Quelldatei enthält die maßgebliche Feldvalidierung und Antwortstruktur.
Fehlercodes
400· Anfrage oder Eingabevalidierung fehlgeschlagen401· Sitzung oder Zugangsdaten fehlen oder sind ungültig403· Rolle oder Zugriffsumfang reicht nicht aus404· Ressource oder Route ist nicht verfügbar409· Konflikt mit dem gespeicherten Zustand422· Routenfehler; Details stehen im Handler.503· Dienst oder Datenbank ist nicht verfügbar
Beleg im Code
app/api/v1/compliance/custom-tests/route