Upgrades a managed source to its recipe's current version, in place, as previewed.
Same source, same agents, same automation and ledger: nothing is re-read and nothing already processed runs again. The plan is recomputed and must hash to the previewed `planHash` (409 otherwise). The upgrade is recorded with what is deployed now and the automation is paused; a background job then waits for runs in flight at the stages that change, deploys the new agent revisions and work shape, records the new version last, and resumes the automation if it was on. Follow it in `…/upgrades`. While it is under way the source refuses settings changes, fork, delete, archive, pause, resume and sync.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The knowledge base id.
uuidThe knowledge source id.
uuidThe tenant identifier
The plan hash of the preview being confirmed.
The planHash of the preview being confirmed. When what the upgrade would write has moved since
— an agent redeployed, the automation edited, a newer server's recipe — it no longer matches, and the
upgrade is refused with 409 rather than applied unseen.
Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/knowledgeBases/497f6eca-6276-4993-bfeb-53cbbbba6f08/sources/497f6eca-6276-4993-bfeb-53cbbbba6f08:upgrade" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "00000000-0000-0000-0000-000000000000",
"ownerKind": "KNOWLEDGE_SOURCE",
"ownerId": "00000000-0000-0000-0000-000000000000",
"recipeKey": "string",
"fromVersion": 0,
"toVersion": 0,
"status": "PLANNED",
"failedDuring": "PLANNED",
"detail": "string",
"wasActive": false,
"canRollBack": false,
"work": {
"agents": [
{
"role": "UNSPECIFIED",
"agentId": "string",
"action": "UNSPECIFIED",
"targetHash": "string"
}
],
"automation": {
"triggerId": "00000000-0000-0000-0000-000000000000",
"action": "UNCHANGED",
"targetHash": "string"
},
"drainStageIds": [
"string"
]
},
"revisionsBefore": {},
"revisionsAfter": {},
"created": [
{
"kind": "TRIGGER",
"role": "SOURCE",
"resourceId": "string"
}
],
"requestedBy": "string",
"createdAt": 0,
"modifiedAt": 0,
"appliedAt": 0,
"confirmedAt": 0,
"rolledBackAt": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}