メインコンテンツへスキップ
POST
/
v2
/
{entity}
/
{project}
/
scorers
スコアラー作成
curl --request POST \
  --url https://api.example.com/v2/{entity}/{project}/scorers \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "op_source_code": "<string>",
  "description": "<string>"
}
'
{
  "digest": "<string>",
  "object_id": "<string>",
  "version_index": 123,
  "scorer": "<string>"
}

承認

Authorization
string
header
必須

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

パスパラメータ

entity
string
必須
project
string
必須

ボディ

application/json
name
string
必須

この scorer の名前です。同じ名前の scorers はまとめてバージョン管理されます。

op_source_code
string
必須

import を含む Scorer.score op の完全なソースコード

description
string | null

この scorer の説明

レスポンス

正常な応答

digest
string
必須

作成された scorer のダイジェスト

object_id
string
必須

作成された scorer の ID

version_index
integer
必須

作成された scorer のバージョンインデックス

scorer
string
必須

作成された scorer の完全な参照