Update api_md document/rm (#894)

### What problem does this PR solve?

Update api_md document/rm
#717 

### Type of change

- [x] Documentation Update
This commit is contained in:
GYH 2024-05-23 15:19:58 +08:00 committed by GitHub
parent 6f99bbbb08
commit 1e5c5abe58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -444,3 +444,27 @@ Get document list based on the knowledge base name and corresponding parameters.
}
```
## Delete document
Delete document by document id or document name.
### Path: /api/document/rm/
### Method: POST
### Parameter:
| Name | Type | Optional | Description |
|-------------|--------|----------|----------------------------|
| `doc_names` | List | Yes | The list of document name. |
| `doc_ids` | List | Yes | The list of document id. |
### Response
```json
{
"data": true,
"retcode": 0,
"retmsg": "success"
}
```