Guide to creating a Dataset Item in the Fetch Hive API.
Last updated 18 days ago
Was this helpful?
Create a new data set item with specified parameters
Data set token
POST /v1/data_sets/{data_set_id}/items HTTP/1.1 Host: api.fetchhive.com Authorization: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 333 { "data_set_item": { "name": "text", "description": "text", "data_query": "text", "data_content": "text", "custom_prompt": "text", "custom_prompt_status": "enabled", "response_type": "text", "item_type": "custom", "chunking_strategy": "default", "delete_email_data": "enabled", "delete_telephone_data": "enabled", "chunk_overlap": 1, "maximum_chunk_length": 1 } }
Successful response
{ "message": "Successfully created a data set item.", "data_set_item": { "id": 1, "name": "text", "description": "text", "token": "text", "data_query": "text", "data_content": "text", "formatted_data_content": "text", "custom_prompt": "text", "custom_prompt_status": "enabled", "website_screenshot_url": "text", "data_document_url": "text", "error_message": "text", "item_type": "custom", "response_type": "text", "run_status": "pending" } }