using Retab;using RetabClient = Retab.Retab;var apiKey = Environment.GetEnvironmentVariable("RETAB_API_KEY")!;var client = new RetabClient(apiKey);var result = await client.Workflows.Evals.UpdateAsync("eval_abc123", new WorkflowEvalsUpdateOptions());Console.WriteLine(result);
import com.retab.RetabClient;import com.retab.workflowevals.WorkflowEvalsApi;public final class Example { public static void main(String[] args) throws Exception { RetabClient client = new RetabClient(System.getenv("RETAB_API_KEY")); var result = new WorkflowEvalsApi(client).update("eval_abc123", "Invoice Processing", null, null); System.out.println(result); }}
using Retab;using RetabClient = Retab.Retab;var apiKey = Environment.GetEnvironmentVariable("RETAB_API_KEY")!;var client = new RetabClient(apiKey);var result = await client.Workflows.Evals.UpdateAsync("eval_abc123", new WorkflowEvalsUpdateOptions());Console.WriteLine(result);
import com.retab.RetabClient;import com.retab.workflowevals.WorkflowEvalsApi;public final class Example { public static void main(String[] args) throws Exception { RetabClient client = new RetabClient(System.getenv("RETAB_API_KEY")); var result = new WorkflowEvalsApi(client).update("eval_abc123", "Invoice Processing", null, null); System.out.println(result); }}
{ "detail": "Workflow eval not found: wfnodeeval_hsLEQiM61ez9Piv147MWk"}
Patch the name, assertion, and/or source of a workflow eval. Every field is
optional in the request body — fields you omit are left untouched. Setting
assertion: null is rejected explicitly (use Delete Workflow Eval if
you want to remove the eval entirely).Updating source rebinds where the inputs come from:
using Retab;using RetabClient = Retab.Retab;var apiKey = Environment.GetEnvironmentVariable("RETAB_API_KEY")!;var client = new RetabClient(apiKey);var result = await client.Workflows.Evals.UpdateAsync("eval_abc123", new WorkflowEvalsUpdateOptions());Console.WriteLine(result);
import com.retab.RetabClient;import com.retab.workflowevals.WorkflowEvalsApi;public final class Example { public static void main(String[] args) throws Exception { RetabClient client = new RetabClient(System.getenv("RETAB_API_KEY")); var result = new WorkflowEvalsApi(client).update("eval_abc123", "Invoice Processing", null, null); System.out.println(result); }}
{ "detail": "Workflow eval not found: wfnodeeval_hsLEQiM61ez9Piv147MWk"}
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
eval_id
string
required
Body
application/json
Body for updating a workflow eval. Only the supplied fields (name, assertion, source) are changed.
name
string | null
assertion
AssertionSpec · object | null
Block-eval assertion against one declared output handle.
target is the only supported shape: an output handle id and an
optional relative path inside that handle's payload.
Show child attributes
source
ManualWorkflowEvalSource · object
ManualWorkflowEvalSource
RunStepWorkflowEvalSource
Show child attributes
Response
Successful Response
A saved workflow eval: a target block, an input source, and the assertion evaluated against its output.
id
string
required
workflow_id
string
required
target
WorkflowEvalBlockTarget · object
required
Public workflow-eval target.
The storage layer remains block-scoped today, but the API shape names the
tested entity explicitly so workflow-level targets can be added later.
Show child attributes
source
ManualWorkflowEvalSource · object
required
ManualWorkflowEvalSource
RunStepWorkflowEvalSource
Show child attributes
name
string | null
assertion
AssertionSpec · object | null
Block-eval assertion against one declared output handle.
target is the only supported shape: an output handle id and an
optional relative path inside that handle's payload.
Show child attributes
assertion_schema_dep
AssertionSchemaDep · object | null
Single-rule schema dependency for Level 2 drift detection.
Show child attributes
assertion_drift_status
enum<string> | null
Available options:
valid,
drifted,
broken
schema_drift
enum<string>
default:unknown
Available options:
none,
partial,
drifted,
unknown
schema_drift_detail
string | null
freshness
ArtifactFreshness · object
Show child attributes
drift
ArtifactDrift · object
Show child attributes
validation_status
string
default:valid
validation_issues
any[]
latest_run_summary
LatestBlockEvalRunSummary · object | null
Summary of the most recent block-eval run.
Execution status and verdict outcome are exposed as separate fields.
The summary is written on terminal-state transitions, so in practice
status is one of completed | error | cancelled and outcome is
populated when status == "completed".
Show child attributes
latest_passing_run_summary
LatestBlockEvalRunSummary · object | null
Summary of the most recent block-eval run.
Execution status and verdict outcome are exposed as separate fields.
The summary is written on terminal-state transitions, so in practice
status is one of completed | error | cancelled and outcome is
populated when status == "completed".
Show child attributes
latest_failing_run_summary
LatestBlockEvalRunSummary · object | null
Summary of the most recent block-eval run.
Execution status and verdict outcome are exposed as separate fields.
The summary is written on terminal-state transitions, so in practice
status is one of completed | error | cancelled and outcome is
populated when status == "completed".