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