Skip to main content
PUT
/
knowledge-bases
/
:id
/
enable

Endpoint

PUT https://gateway.orkeia.ai/knowledge-bases/{id}/enable Authentication
Requires header authorization: <your_token>.

Path Parameters

NameTypeRequiredDescriptionExample
idstringYesIdentifier of the knowledge base.KB_123456

Request Body (JSON)

{
  "enabled": true
}

Example (cURL)

curl -X PUT "https://gateway.orkeia.ai/knowledge-bases/KB_123456/enable" \
  -H "authorization:  <your_token>" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": true }'

Responses

Response - Success

response
{
  "status": "OK",
  "data": {
    "id": "KB_123456",
    "enabled": true
  }
}

500 — Server Error

{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}

400 — Client Error

{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}