Skip to main content
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

Response

Behavior

  • Updates the knowledge base STATUS and resets TRAINED to 0 (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

Example cURL

Headers

token
string
required

API token for authentication

Body

application/json
knowledge_base_id
integer
required

ID of the knowledge base record

status
enum<string>
required

New status value to set. Use 'active' to enable or 'inactive' to disable.

Available options:
active,
inactive

Response

Knowledge base status updated successfully

message
string
data
object