Update a Dataset Item

Guide to updating a Dataset Item in the Fetch Hive API.

Update a data set item

patch

Update a specific data set item's details

Authorizations
Path parameters
data_set_idstringRequired

Data set token

idstringRequired

Data set item token

Body
Responses
200
Successful response
application/json
patch
PATCH /v1/data_sets/{data_set_id}/items/{id} 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
  }
}
{
  "message": "Successfully updated 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"
  }
}

Last updated

Was this helpful?