Skip to main content
POST
Preview a discriminator config against an existing scan.

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string<uuid>
required

UUID of the repository component.

Body

application/json

Evaluate a draft and optional baseline against one immutable scan.

versionId
string<uuid>
required

Required scan/version UUID; the endpoint never selects latest implicitly.

expectedEngineVersion
string
required

Engine identity captured with the effective config snapshot.

Minimum string length: 1
config
object
required

An engine discriminator config JSON document. Writes are limited to 1 MiB and must pass engine validation and use the product-compatible payload to field-mapping hierarchy.

baselineConfig
object

Include on the first run to evaluate the baseline using the same artifacts. Identical configs are evaluated once.

Response

A scan-only result or the selected scan's no-strand capability.

Draft and optional baseline results from one shared materialization of the selected scan artifacts. A baseline is returned only when requested. elapsedMs covers the complete request.

draft
object
required

One completed config evaluation, or a scan without strand data.

elapsedMs
integer
required
Required range: x >= 0
baseline
object

One completed config evaluation, or a scan without strand data.