Back

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}

Access

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

Request

JSON body follows validation in route source

PathRoute details
path · entityrequired · {"type":"string"}
path · idrequired · {"type":"string"}

The accepted fields and validation are implemented in app/api/v1/[entity]/[id]/route.ts; parsed by assetBody, statusBody.

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

Response

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

200

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

Error codes

The OpenAPI inventory lists no route-specific error status for this method.

Code evidence

app/api/v1/[entity]/[id]/route

Local index↑ ↓ · Enter · Esc