cURL
curl --request POST \ --url https://api.promptlayer.com/api/public/v2/dataset-groups \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <x-api-key>' \ --data ' { "name": "<string>", "workspace_id": 2 } '
{ "success": true, "message": "<string>", "dataset_group": { "id": 123, "name": "<string>", "workspace_id": 123, "is_deleted": true }, "dataset": { "id": 123, "dataset_group_id": 123, "version_number": 123, "column_names": [ "<string>" ], "is_deleted": true, "user_id": 123, "filter_params": {}, "dataset_group": { "id": 123, "name": "<string>", "workspace_id": 123, "is_deleted": true } } }
Your PromptLayer API key.
Name of the dataset group. Must be unique within the workspace.
1
Optional: ID of the workspace where the dataset group will be created. If not provided, uses the workspace associated with your API key.
x >= 1
Dataset group created successfully
Show child attributes
Was this page helpful?