cURL
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>" }
Create a scorer object.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The name of this scorer. Scorers with the same name will be versioned together.
Complete source code for the Scorer.score op including imports
A description of this scorer
Successful Response
The digest of the created scorer
The ID of the created scorer
The version index of the created scorer
Full reference to the created scorer
Was this page helpful?