PUT
/
v1
/
hives
/
{hive_id}
curl --request PUT \
  --url https://api.trata.ai/v1/hives/{hive_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "hiveType": "WEBSITE",
  "url": "<string>",
  "files": [
    {
      "id": "<string>",
      "orgId": "<string>",
      "fileName": "<string>",
      "fileUrl": "<string>",
      "createdBy": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedBy": "<string>",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "hiveProps": {},
  "internalProps": {}
}'
{
  "id": "hiv.1727418138.IPGwVl1f",
  "orgId": "org.1726902940.GZChqlpU",
  "content": {
    "hiveType": "WEBSITE",
    "url": "https://www.cotekoreansteakhouse.com/",
    "hiveProps": {
      "crawl_child_pages": true
    }
  },
  "status": "completed",
  "createdBy": "org.1726902940.GZChqlpU",
  "createdAt": "2024-09-27T06:22:18.000277",
  "updatedBy": "trata-system",
  "updatedAt": "2024-09-27T06:27:34.276065"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

hive_id
string
required

ID of the hive

Body

application/json

Response

200
application/json

Hive updated successfully

Reference to all business knowledge base will be stored in Hive