[]
Remove all the approver roles and abandon their ACLs when the document draft is disabled
Responses
[204] No Content
[400] Bad Request
Type: [application/json]
Get all knowledge base files
Responses
[200] Returns the list of knowledge base files
Type: [text/plain], [application/json], [text/json]
[400] If there was an error retrieving the knowledge base files
Type: [text/plain], [application/json], [text/json]
Upload a new knowledge base file
Request Body
Type: multipart/form-data
| Key | Type | Format | Encoding |
|---|---|---|---|
| file | string | binary | form |
Responses
[200] Returns the created knowledge base file information
Type: [text/plain], [application/json], [text/json]
[400] If the file is empty, invalid type, too large, or there was an error uploading
Type: [text/plain], [application/json], [text/json]
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| idRequired | path | string | The ID of the knowledge base file |
Download a knowledge base file
Responses
[200] Returns the file content
binary
Type: [text/plain], [application/json], [text/json]
[400] There was an error with downloading
Type: [text/plain], [application/json], [text/json]
[404] The knowledge base was not found
Type: [text/plain], [application/json], [text/json]
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| idRequired | path | string | The ID of the knowledge base file to delete |
Delete a knowledge base file
Responses
[204] If the file was successfully deleted
[400] There was an error deleting
Type: [text/plain], [application/json], [text/json]
[404] The knowledge base was not found
Type: [text/plain], [application/json], [text/json]
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| idRequired | path | string | The ID of the knowledge base file to rename |
Rename a knowledge base file
Request Body
Description: The rename request containing the new name
Type: application/json
Responses
[200] Returns the updated knowledge base file information
Type: [text/plain], [application/json], [text/json]
[400] There was an error with renaming
Type: [text/plain], [application/json], [text/json]
[404] The knowledge base was not found
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| query | query | string | Search query string |
Search knowledge base content
Responses
[200] Returns the list of search results
KnowledgeSearchResultViewModel
Type: [text/plain], [application/json], [text/json]
[400] If an error occurs during the search process
Type: [text/plain], [application/json], [text/json]
Server plugin error
| Name | Type | Description |
|---|---|---|
| codeNullable | string | error code |
| messageNullable | string | error message |
| contextNullable | string | error context |
| innerError | ServerPluginError | |
| extensionsNullable | any | Extended result |
Knowledge View Model
| Name | Type | Description |
|---|---|---|
| idNullable | string | Id |
| nameNullable | string | Name |
| typeNullable | string | Type |
| size | int64 | Size |
| createTime | ISO DateTime Sting | CreateTime |
| Name | Type |
|---|---|
| newNameNullable | string |
| Name | Type |
|---|---|
| resultsNullable | Array<KnowledgeSearchResultViewModel+SearchResultItem> |
| Name | Type |
|---|---|
| score | any |
| resultNullable | string |