Passer au contenu principal
POST
/
v2
/
{entity}
/
{project}
/
scores
Créer un score
curl --request POST \
  --url https://api.example.com/v2/{entity}/{project}/scores \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prediction_id": "<string>",
  "scorer": "<string>",
  "value": 123,
  "evaluation_run_id": "<string>"
}
'
{
  "score_id": "<string>"
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

entity
string
requis
project
string
requis

Corps

application/json

Corps de requête pour créer un score via l’API REST.

Ce modèle exclut project_id, car il provient du chemin d’URL dans les endpoints RESTful.

prediction_id
string
requis

L’ID de la prédiction

scorer
string
requis

La référence du scorer (URI weave://)

value
number
requis

La valeur du score

evaluation_run_id
string | null

ID de run d’évaluation facultatif pour lier ce score en tant qu’appel enfant

Réponse

Réponse réussie

score_id
string
requis

L’ID du score