FruxonDocs
ApiKnowledge bases

Shows what upgrading a knowledge base's own consolidator and editor would do, changing nothing.

For the pair the base provisioned for itself (`:enableConsolidation`); a pair a source seeded is upgraded with that source. The same plan as a source's, without an automation: the drain waits only for a consolidation pass in progress.

POST
/v1/tenants/{tenant}/knowledgeBases/{knowledgeBase}:previewUpgrade
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

knowledgeBase*string

The knowledge base id.

Formatuuid
tenant*string

The tenant identifier

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/knowledgeBases/497f6eca-6276-4993-bfeb-53cbbbba6f08:previewUpgrade"
{
  "recipeKey": "string",
  "ownerKind": "KNOWLEDGE_SOURCE",
  "ownerId": "00000000-0000-0000-0000-000000000000",
  "fromVersion": 0,
  "toVersion": 0,
  "kind": "AGENTS_ONLY",
  "stampOnly": false,
  "steps": [
    {
      "version": 0,
      "kind": "AGENTS_ONLY",
      "operatorNote": "string"
    }
  ],
  "agents": [
    {
      "role": "SOURCE",
      "agentId": "string",
      "action": "UNCHANGED",
      "deployedRevision": 0,
      "deployedHash": "string",
      "targetHash": "string",
      "builtByAnotherOwner": false,
      "diff": {
        "prompts": [],
        "models": [],
        "toolsAdded": [],
        "toolsRemoved": [],
        "toolsChanged": [],
        "outputContractChanged": false,
        "otherChanges": []
      }
    }
  ],
  "automation": {
    "triggerId": "00000000-0000-0000-0000-000000000000",
    "action": "UNCHANGED",
    "deployedHash": "string",
    "targetHash": "string",
    "stages": [
      {
        "stageId": "string",
        "change": "UNSPECIFIED",
        "fields": []
      }
    ],
    "otherChanges": [
      {
        "field": "string",
        "from": "string",
        "to": "string"
      }
    ]
  },
  "newSettings": {},
  "liveItems": {
    "live": [
      {
        "stageId": "string",
        "status": "UNSPECIFIED",
        "count": 0
      }
    ],
    "wouldFail": [
      {
        "stageId": "string",
        "path": "string",
        "count": 0,
        "sampleItemKeys": null
      }
    ]
  },
  "inFlight": [
    {
      "stageId": "string",
      "count": 0,
      "description": "string"
    }
  ],
  "reversible": {
    "reversible": false,
    "caveats": [
      "string"
    ]
  },
  "refusals": [
    {
      "code": "NOT_UPGRADABLE",
      "message": "string"
    }
  ],
  "canUpgrade": false,
  "planHash": "string"
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}