Skip to content

Commit

Permalink
Update api_md document/rm (#894)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

Update api_md document/rm
#717 

### Type of change

- [x] Documentation Update
  • Loading branch information
guoyuhao2330 committed May 23, 2024
1 parent 6f99bbb commit 1e5c5ab
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/references/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

```

0 comments on commit 1e5c5ab

Please sign in to comment.