datasets

Create a dataset log

Create a single dataset log from unified-format input/output data.

post/api/datasets/{dataset_id}/logs/

Path parameters

dataset_idstring required

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

Headers

Authorizationstring required

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Request body

{"stackTrail":"paths:/api/datasets/{dataset_id}/logs/:post:requestBody:content:application/json:schema:properties:input","oasType":"schema","type":"unknown","description":"Any type"}
{"stackTrail":"paths:/api/datasets/{dataset_id}/logs/:post:requestBody:content:application/json:schema:properties:output","oasType":"schema","type":"unknown","description":"Any type"}
metadataApiDatasetsDatasetIdLogsPostRequestBodyContentApplicationJsonSchemaMetadata
metricsApiDatasetsDatasetIdLogsPostRequestBodyContentApplicationJsonSchemaMetrics

Response

Dataset log created.

messagestring required
unique_idstring required

Changes