cURL
curl --request POST \ --url https://api.thehaystack.ai/v2/haystack/collections/create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Sunday Sermons" } '
{ "collection": { "id": 1, "name": "Sunday Sermons", "itemDescriptor": "sermon", "contentFormat": "sermon", "fullService": false, "variantTypes": [ { "id": 123, "name": "Sermon Video", "contentType": "video", "indexable": true, "displayOrder": 123, "collectionId": 123 } ] } }
Create a new collection
Documentation IndexFetch the complete documentation index at: https://developer.thehaystack.ai/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://developer.thehaystack.ai/llms.txt
Use this file to discover all available pages before exploring further.
Enter your API token from the Haystack dashboard
"Sunday Sermons"
Collection created
Show child attributes