Coordinate data processing tasks¶
Repair the data source processing task status marked as requiring repair.
POST $CLOUDSIGMA_API_BASE/semantic-models/{model_id}/source-jobs/reconcile
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 processing task list, and confirm that the knowledge base has a task that returns reconcile_required: true. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl -X POST "$CLOUDSIGMA_API_BASE/semantic-models/$MODEL_ID/source-jobs/reconcile" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Only called when the task returns reconcile_required: true.
Path parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
The knowledge base ID for processing task status needs to be fixed. |
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 |
|