cURL
curl --request POST \ --url https://api.promptlayer.com/dataset-from-filter-params \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "workspace_id": 123, "q": "<string>", "start_time": "<string>", "end_time": "<string>", "tags": [ {} ], "metadata": [ {} ], "scores": [ {} ], "starred": true, "prompt_template": {}, "limit": 123 }'
import requests response = requests.post( "https://api.promptlayer.com/dataset-from-filter-params", json={ "name": "Dataset Name", "workspace_id": 1, "q": "javascript", "start_time": "2023-11-17 20:14:31.874642", "end_time": "2024-11-18 20:14:31.874642", "tags": ["prod", "dev"], "metadata": [ {"key": "user_id", "value": "abc123"}, {"key": "success", "value": "true"} ], "scores": [ {"name": "default", "operator": ">", "value": 90} ], "starred": True, "prompt_template": { "name": "recipe_template", "version_numbers": [50, 51] }, "limit": 500, } )
Was this page helpful?