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.
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>"
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Was this page helpful?