TriggerKnowledgeFileParse
Submits a task to reparse a knowledge base file.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:TriggerKnowledgeFileParse |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ADB instance ID. |
am-bp19aaaaaa**** |
| FileId |
string |
No |
The ID of the knowledge base file. You must specify either this parameter or FileLocation. |
123 |
| FileLocation |
string |
No |
The path to a single file in the knowledge base. You must specify either this parameter or FileId. You cannot specify a directory. The path must uniquely identify an existing file. |
oss://bucket/doc.pdf |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| Data |
object |
The returned data. |
|
| Success |
boolean |
Indicates whether the operation is successful. If the operation fails, the Data parameter contains only the Success and Message parameters. |
true |
| Message |
string |
The description of the operation result. If the operation fails, this parameter indicates the cause or the security error code. |
Submitted for reparsing |
| FileId |
string |
The ID of the file submitted for reparsing. The value is a decimal string. This parameter is returned only when the operation is successful. |
123 |
| PreviousStatus |
string |
The status before the submission. Valid values: PENDING, COMPLETED, FAILED, SKIPPED, and DUPLICATED. This parameter is returned only when the operation is successful. |
COMPLETED |
| ProcessStatus |
string |
The status after the submission. The value is fixed to PENDING. This parameter is returned only when the operation is successful. |
PENDING |
Examples
Success response
JSON format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"Data": {
"Success": true,
"Message": "Reparse task submitted",
"FileId": "123",
"PreviousStatus": "COMPLETED",
"ProcessStatus": "PENDING"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MDS.IllegalArgument | Invalid argument. | An invalid parameter is used. |
| 400 | MDS.InvalidPrivilege | No permissions. | You are not authorized to perform this operation. |
| 500 | MDS.InternalError | An internal MDS error occurred. | An internal error occurred. |
| 500 | MDS.MetaVisitError | Failed to access metadata. | Failed to access the metadata. |
| 403 | MDS.RamAuthAccessDenied | ram auth access denied. | RAM authentication failed |
| 404 | MDS.InstanceNotExist | ADB instance does not exist. | ADB instance does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.