Create a new collection.
Python
import requests url = "https://www.datalab.to/api/v1/collections" payload = { "name": "<string>", "description": "<string>" } headers = { "X-API-Key": "<api-key>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "id": 123, "name": "<string>", "description": "<string>", "archived": true, "created": "2023-11-07T05:31:56Z", "updated": "2023-11-07T05:31:56Z", "file_count": 0, "files": [] }
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.
200
Successful Response
Show child attributes
Was this page helpful?