Start a knowledge base sync job
POST/ai/knowledgebases/:id/sync
Starts an asynchronous sync and returns JobRunId. Requires editor access. Unstructured: omit SourceIds to sync all attached sources (ExecutionScope KnowledgeBase). If SourceIds is present, those Bedrock source IDs are synced (ExecutionScope Datasource) and must already be attached. Structured: the body is ignored and the whole knowledge base is synced. Fails if a JobRun is already RUNNING, if no sources are attached, or if an unstructured embedding model is not assigned.
Request
Responses
- 200
- 400
- 500
Sync job started. Returns Message and JobRunId.
Response Headers
Input validation or authorization failure. Body is {"Message": " -
Response Headers
Backend failure. Body is {"Message": " -