API Documentation
Prospects
Agents
VoiceModels
Hive
HiveAgentLink
Actions
ActionAgentLink
Products
Conversations
ConversationProspectLink
Hive
Update a Specific Hive by ID
Update a Specific Hive by ID
PUT
/
v1
/
hives
/
{hive_id}
Copy
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": {}
}'
Copy
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
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
Copy
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": {}
}'
Copy
{
"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"
}
Assistant
Responses are generated using AI and may contain mistakes.