Update generation metadata
PATCH/api/v1/generations/:generation_id
Attaches caller-supplied key/value metadata to a generation record for per-run audit attribution (e.g. recording which knowledge-corpus version produced an AI action). The provided keys are shallow-merged over the existing metadata, so repeated patches accumulate and system-owned keys are preserved. Reserved keys (action_id, trigger_id, run_id, node_id, extraction, and internal recovery state) cannot be set and are rejected with 400.
Request
Responses
- 200
- 400
- 401
- 403
- 404
Updated generation
Bad Request (e.g. metadata is not an object or uses reserved keys)
Unauthorized
Forbidden
Generation not found