Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Batch feedback scoring for spans

PUT/v1/private/spans/feedback-scoresBatch feedback scoring for spans

Batch feedback scoring for spans

Request body

application/json
objectFeedbackScoreBatch
scoresarray of objectrequired

maxItems 1000 · minItems 1

Show child attributes

maxItems 1000 · minItems 1

Show array items
authorstring
category_namestring
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"

source_queue_idstring · uuid
valuenumberrequired

maximum 1000000000 · minimum -1000000000

Example request
{
  "scores": [
    {
      "author": "string",
      "category_name": "string",
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "project_id": "00000000-0000-0000-0000-000000000000",
      "project_name": "string",
      "reason": "string",
      "source": "online_scoring",
      "source_queue_id": "00000000-0000-0000-0000-000000000000",
      "value": 0
    }
  ]
}

Responses

204No Content
Documentation menu