メインコンテンツへスキップ
POST
/
calls
/
score
Call スコア
curl --request POST \
  --url https://api.example.com/calls/score \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "call_ids": [
    "<string>"
  ],
  "scorer_refs": [
    "<string>"
  ],
  "wb_user_id": "<string>"
}
'
{}

承認

Authorization
string
header
必須

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

ボディ

application/json

Call のリストに対するスコアリング ジョブをキューに追加するリクエスト。

スコアリングは call_scoring_worker によって非同期に実行されます。call_scoring_worker は Kafka からメッセージを受信し、各 call_id に各 scorer_ref を適用します。

project_id
string
必須
call_ids
string[]
必須

スコアリングする Call ID のリスト

scorer_refs
string[]
必須

適用する scorer ref のリスト

wb_user_id
string | null

直接設定しないでください。サーバーがこのフィールドを自動的に自動入力します。

レスポンス

正常なレスポンス

calls_score の空のレスポンス。

このインターフェース全体で使用されている規約に従い、また将来的に破壊的変更なしでフィールドを追加できるようにするため、None を返すのではなくモデルとして定義されています。