Start moving a knowledge base to another embedding profile (platform admins with a session; audited)
/v1/admin/profile-migrationsRe-embeds every source of the knowledge base into the target profile in the background, reusing the stored parsed text (the chunks are copied when the chunk settings match, else cut again; nothing is fetched). The knowledge base keeps searching its current profile until every source is complete, then switches in one step. Refused with 409 migration_blocked (details.blockers) when the preflight has blockers. Audited as kb.profile_migration_start (counts only).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/admin/profile-migrations" \ -H "Content-Type: application/json" \ -d '{ "kbId": "a6a9e4cd-2268-4a05-9203-ebd30485b88f", "targetProfileId": "c2a3ebdd-7cda-4cf3-b403-e8ea6d5b2c7f" }'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "running", "kb": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "teamSlug": "string", "teamName": "string", "fromProfile": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "toProfile": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "graceDays": 0, "estimate": { "documents": 0, "passages": 0, "tokens": 0, "embeddingCalls": 0, "requestsPerMinute": 0, "minutes": 0, "rechunk": true }, "startedAt": "2019-08-24T14:15:22Z", "startedBy": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "displayName": "string", "email": "string" }, "switchedAt": "2019-08-24T14:15:22Z", "oldVectorsUntil": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z", "canSwitchBack": true, "progress": { "sources": 0, "sourcesComplete": 0, "documents": 0, "done": 0, "failed": 0, "waiting": 0 }, "sources": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "shared": true, "state": "in_progress", "documents": 0, "done": 0, "failed": 0, "waiting": 0, "error": "string" } ], "failures": [ { "documentId": "4704590c-004e-410d-adf7-acb7ca0a7052", "sourceId": "797f5a94-3689-4ac8-82fd-d749511ea2b2", "sourceName": "string", "title": "string", "code": "string", "message": "string", "attempts": 0, "failedAt": "2019-08-24T14:15:22Z" } ], "revision": 0 }}