Create Record

Create a new Record in a Run.

post/runs/{runId}/records

Path parameters

runIdstring required
Example:135

The ID of the Run.

Request body

testcaseIdstring

The ID of the Testcase.

inputsobject required

The actual inputs sent to the system, which should match the system's input schema.

expectedobject required

The expected outputs for the Testcase.

outputsobject required

The actual outputs from the system.

otelLinkIdstring

Optional ID for linking this record with an OpenTelemetry trace. Used for deduplication.

sessionIdstring

Optional session ID for this record. Matches the session.id emitted on OTel spans, joining the record to its session's traces and attachments.

Example request

{
  "sessionId": "c59e5bd0-e5eb-4bf0-a08a-01f7e8f712c7"
}

Response

Record created successfully

idstring required

The ID of the Record.

runIdstring required

The ID of the Run containing this Record.

testcaseIdstring

The ID of the Testcase.

inputsobject required

The actual inputs sent to the system, which should match the system's input schema.

expectedobject required

The expected outputs for the Testcase.

outputsobject required

The actual outputs from the system.

Changes

Changed in 4 of the 37 revisions of this API.214

    • added the new optional request property

      new-optional-request-property

    • added the new optional request property

      new-optional-request-property

  • 97ddfea9a000211See the full diff
    • added the new required request property

      new-required-request-property

    • removed the required property from the response with the status

      response-required-property-removed

    • removed the request property

      request-property-removed

    • added the required property to the response with the status

      response-required-property-added

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog