Skip to main content
POST
/
knowledge-bases
/
:id
/
version-control

Endpoint

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

Path Parameters

NameTypeRequiredDescriptionExample
idstringYesIdentifier of the knowledge base.KB_123456

Request Body (JSON)

{
  "notes": "Description of changes in this version."
}

Example (cURL)

curl -X POST "https://gateway.orkeia.ai/knowledge-bases/KB_123456/version-control" \
  -H "authorization:  <your_token>" \
  -H "Content-Type: application/json" \
  -d '{ "notes": "Description of changes in this version." }'

Responses

Response - Success

response
{
  "status": "OK",
  "data": {
    "versionId": "v1.0.2",
    "createdAt": "2024-07-20T10:00:00Z",
    "notes": "Description of changes in this version."
  }
}

500 — Server Error

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

400 — Client Error

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