Upload example files for a template. Admin-only.
Python
import requests url = "https://www.datalab.to/api/v1/pipeline_templates/{slug}/examples" files = { "files.items": ("example-file", open("example-file", "rb")) } payload = { "files": "<string>" } headers = {"X-API-Key": "<api-key>"} response = requests.post(url, data=payload, files=files, headers=headers) print(response.text)
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Documentation IndexFetch the complete documentation index at: https://documentation.datalab.to/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://documentation.datalab.to/llms.txt
Use this file to discover all available pages before exploring further.
Example files to upload
Successful Response
Was this page helpful?