cURL
curl --request POST \ --url https://api.promptlayer.com/api/public/v2/dataset-versions/add-request-log \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <x-api-key>' \ --data ' { "dataset_group_id": 2, "request_log_id": 2 } '
{ "success": true, "message": "<string>", "draft_dataset_id": 123 }
create-draft
API key for authentication. This endpoint supports API key authentication only.
ID of the dataset group containing the draft
x >= 1
ID of the request log to add as a dataset row
Request log added to draft dataset
ID of the draft dataset
Was this page helpful?