メインコンテンツへスキップ
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
必須

このスコアラーの名前。同じ名前を持つスコアラーは同一系統のバージョンとして扱われます。

op_source_code
string
必須

Scorer.score 操作のインポートを含んだ完全なソースコード

description
string | null

このスコアラーの説明

レスポンス

正常応答

digest
string
必須

作成されたスコアラーのダイジェスト値

object_id
string
必須

作成されたスコアラーの ID

version_index
integer
必須

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

scorer
string
必須

作成されたスコアラーへの完全な参照