Skip to main content
Create a repository document

Authorizations

Authorization
string
header
required

Obtain a Bearer token via the Create access token endpoint using the OAuth2 client credentials flow.

Body

multipart/form-data
file
file

The document file to upload. Required if url is not provided.

url
string<uri>

A public HTTPS URL to fetch the document from. Required if file is not provided. Internal and private network addresses are blocked.

metadata
string

A JSON string with arbitrary metadata to attach to the document.

Example:

"{\"department\":\"Legal\",\"category\":\"Vendor\"}"

Response

Document created successfully.

success
boolean
Example:

true

message
string
Example:

"Document created successfully"

data
object