PUT
/
v1
/
data-stores
/
{data_store_id}
Update Data Store
curl --request PUT \
  --url https://api.eqho.ai/v1/data-stores/{data_store_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "Customer Support FAQ",
  "description": "Collection of articles for customer support"
}'
{
  "_id": "<string>",
  "account_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "documents": [
    {
      "filename": "<string>",
      "file_size": 123,
      "uploaded_at": "2023-11-07T05:31:56Z"
    }
  ],
  "urls": [
    {
      "url": "<string>",
      "uploaded_at": "2023-11-07T05:31:56Z"
    }
  ],
  "enabled": true,
  "history": {
    "revision": 0,
    "created_at": "2023-11-07T05:31:56Z",
    "created_by": "unknown",
    "last_modified_at": "2023-11-07T05:31:56Z",
    "last_modified_by": "unknown"
  }
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

data_store_id
string
required
Required string length: 24

Body

application/json

A set of optional updates to be made.

name
string | null

The name of the Knowledge Base to update. Leave null or don't include to keep the current value.

Examples:

"Customer Support FAQ"

description
string | null

The description of the Knowledge Base to update. Leave null or don't include to keep the current value.

Examples:

"Collection of articles for customer support"

Response

Successful Response

Container for a single data store record.

name
string
required
description
string
required
_id
string | null
Required string length: 24
account_id
string | null
documents
DocumentModel · object[]
urls
UrlModel · object[]
enabled
boolean | null
default:true
history
object | null