Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Batch ingestion of assertion results

PUT/v1/private/assertion-resultsBatch ingestion of assertion results

Batch ingestion of assertion results for traces or spans

Request body

application/json
objectAssertionResultBatch
assertion_resultsarray of objectrequired

maxItems 1000 · minItems 1

Show child attributes

maxItems 1000 · minItems 1

Show array items
entity_idstring · uuidrequired
namestringrequired

minLength 1

project_idstring · uuid
project_namestring

If null, the default project is used

pattern (?s)^\s*(\S.*\S|\S)\s*$

reasonstring
sourcestringrequired

one of "ui", "sdk", "online_scoring"

statusstringrequired

one of "passed", "failed"

entity_typestringrequired

one of "TRACE", "SPAN", "THREAD"

Example request
{
  "assertion_results": [
    {
      "entity_id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "project_id": "00000000-0000-0000-0000-000000000000",
      "project_name": "string",
      "reason": "string",
      "source": "online_scoring",
      "status": "failed"
    }
  ],
  "entity_type": "SPAN"
}

Responses

204No Content
Documentation menu