메인 콘텐츠로 건너뛰기
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의 이름입니다. 동일한 이름의 scorer는 함께 버전 관리됩니다.

op_source_code
string
필수

import를 포함한 Scorer.score op의 전체 소스 코드

description
string | null

이 scorer에 대한 설명

응답

성공적인 응답

digest
string
필수

생성된 스코어러의 다이제스트

object_id
string
필수

생성된 스코어러의 ID

version_index
integer
필수

생성된 스코어러의 버전 인덱스

scorer
string
필수

생성된 스코어러에 대한 전체 참조