Datasets
Create Dataset Version from File
POST
Create a dataset version by submitting a base64-encoded CSV or JSON file. PromptLayer queues the file for asynchronous processing and creates a draft dataset while the job runs.Documentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
Behavior Notes
- The draft dataset starts with
version_number = -1and receives a real version number after processing succeeds. - The
dataset_version_created_by_filewebhook event is sent when processing succeeds. - The
dataset_version_created_by_file_failedwebhook event is sent when processing fails. - Decoded file content must be 100MB or smaller.
- Failed drafts are automatically cleaned up.
Related
Authorizations
Body
application/json
ID of the dataset group where the new version will be created.
Required range:
x >= 1Name of the CSV or JSON file. Must end with .csv or .json.
Required string length:
1 - 255Base64-encoded file content. Maximum decoded file size is 100MB.
Minimum string length:
1
