mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-15 02:50:10 +01:00
parent
fc27685eb1
commit
7b42a67acf
@ -237,6 +237,7 @@ function apiDocumentEndpoints(app) {
|
|||||||
example: {
|
example: {
|
||||||
"textContent": "This is the raw text that will be saved as a document in AnythingLLM.",
|
"textContent": "This is the raw text that will be saved as a document in AnythingLLM.",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"title": "This key is required. See in /server/endpoints/api/document/index.js:287"
|
||||||
keyOne: "valueOne",
|
keyOne: "valueOne",
|
||||||
keyTwo: "valueTwo",
|
keyTwo: "valueTwo",
|
||||||
etc: "etc"
|
etc: "etc"
|
||||||
|
@ -1012,26 +1012,7 @@
|
|||||||
"description": "Internal Server Error"
|
"description": "Internal Server Error"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"requestBody": {
|
"requestBody": {}
|
||||||
"description": "Text content and metadata of the file to be saved to the system. Use metadata-schema endpoint to get the possible metadata keys",
|
|
||||||
"required": true,
|
|
||||||
"type": "object",
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"type": "object",
|
|
||||||
"example": {
|
|
||||||
"textContent": "This is the raw text that will be saved as a document in AnythingLLM.",
|
|
||||||
"metadata": {
|
|
||||||
"keyOne": "valueOne",
|
|
||||||
"keyTwo": "valueTwo",
|
|
||||||
"etc": "etc"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/documents": {
|
"/v1/documents": {
|
||||||
|
Loading…
Reference in New Issue
Block a user