Skip to main content
POST
/
v1
/
api
/
documents
Create Document
curl --request POST \
  --url https://dev-knowledge-store.actualize.ae/v1/api/documents \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "pdf",
  "location": "<string>",
  "metadata": {}
}
'
"<any>"

Body

application/json

This model is to create a document in the system. This can only be used if the document is a Web URL, or a local file in the server. If uploading a new file, use the DocumentUpload model.

name
string
required
type
enum<string>
required
Available options:
pdf,
csv,
docx,
xlsx,
web
location
string
required
metadata
object
required

Response

Successful Response

The response is of type any.