Update knowledge base status
Campaigns
Update Knowledge Base Status
Update the status of a knowledge base item linked to a campaign. Resets the trained state, requiring re-training.
POST
Update knowledge base status
Use this endpoint to update the status of a knowledge base item linked to a campaign.
Endpoint
POST/update-knowledgebase-status
Content-Type: application/json
Authentication: Required (workspace auth)
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
knowledge_base_id | number | Yes | ID of the knowledge base record |
status | string | Yes | active or inactive |
Response
Behavior
- Updates the knowledge base
STATUSand resetsTRAINEDto0(untrained), requiring re-training. - Validates that the knowledge base record exists and is not deleted.
- Validates that the associated agent exists and is not deleted.
Error Cases
| Error | Cause |
|---|---|
Knowledge base not found | Invalid knowledge_base_id or record is deleted |
Associated agent not found | The linked agent has been removed |
Example cURL
Headers
API token for authentication
Body
application/json

