Complete the relationship between historical data sources¶
Supplement management records associated with original files, data tables, or processing tasks for the old knowledge base. After patching, the data source list, processing status, and governance operations will recognize this old data. This operation does not re-upload or import the original data.
POST $CLOUDSIGMA_API_BASE/semantic-models/{model_id}/sources/backfill-legacy
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region.
First query the knowledge base data source list, and confirm that legacy_backfill_required in the response is true. Prepare a personal access token and target workspace ID that can access the target workspace.
The newly created knowledge base does not require routine calls.
Request parameters¶
curl -X POST "$CLOUDSIGMA_API_BASE/semantic-models/$MODEL_ID/sources/backfill-legacy" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
The knowledge base ID to complete the historical source relationship. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"updated": true
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object |
The return data of this operation. |
|
boolean |
|
Error response¶
{
"code": "ErrNotFound",
"msg": "resource not found",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Error description. |
|
null |
|