DeleteDocumentChunks
Deletes chunks from a document in a knowledge base.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| KbUuid |
string |
Yes |
The ID of the knowledge base. |
kb-*** |
| DocumentName |
string |
Yes |
The name of the document. |
test.md |
| ChunkIds |
array |
Yes |
A list of chunk IDs. |
|
|
string |
No |
A chunk ID. |
52b00647-7065-4ad8-ac51-9cf7e762415**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The unique request ID for the call. If an error occurs, provide this request ID to support. |
67E910F2-4B62-5B0C-ACA3-7547695C**** |
| Data |
integer |
The number of deleted chunks. |
1 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code returned if the call fails. |
KnowledgeBaseNotFound |
| ErrorMessage |
string |
The error message returned if the call fails. |
Resource not found kb-*** |
Examples
Success response
JSON format
{
"RequestId": "67E910F2-4B62-5B0C-ACA3-7547695C****",
"Data": 1,
"Success": true,
"ErrorCode": "KnowledgeBaseNotFound",
"ErrorMessage": "Resource not found kb-***"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.