PUT /api/v2/storefront/intelligence-runs/{id}/label
Attaches — or replaces — an evaluator label on an intelligence-run record. The
label body is freeform JSON your evaluation workflow defines (for example,
{ "verdict": "good", "grader": "human", "notes": "..." }). The full updated run
record comes back in the response.
Request
curl
Parameters
| Field | In | Type | Required | Notes |
|---|---|---|---|---|
id | path | integer | Yes | Surrogate id of the intelligence-run row |
label | body | object | Yes | Freeform JSON object your eval workflow defines. Replaces any existing label |
Response
Returns200 with the full intelligence-run record, with evalLabel set to the
label you sent:
Errors
400 VALIDATION_ERROR— missinglabelor non-object body.404 NOT_FOUND— no run with thatidon your storefront.401 UNAUTHORIZED— missing or invalid bearer token.
Related
Intelligence run tasks
All intelligence-run operations.
Get intelligence run
Fetch the full run record.