Replace a dataset log

Replace a dataset log with a new payload. Fields omitted from the body are removed.

Path parameters

dataset_idstringRequired

Dataset ID. Use _saved_logs for the virtual saved-logs collection.

unique_idstringRequired
Unique log ID within the dataset.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
inputanyOptional
outputanyOptional
expected_outputanyOptional
promptstringOptional
completionstringOptional
metadataobjectOptional

Response

Updated dataset log.
idstring
Log ID.
unique_idstring
Unique log ID.
organization_idstring
environmentstring
timestampdatetime
start_timedatetime
prompt_tokensinteger
completion_tokensinteger
total_request_tokensinteger
costdouble
modelstring
latencydouble
status_codeinteger
statusstring
metadataobject
promptstring
completionstring
messageslist of objects
inputany
outputany
expected_outputany
dataset_idstring
scoreslist of objects

Errors

401
Unauthorized Error