Create a repository document
Repository Documents
Create a repository document
Upload a document to the repository. You must provide either a file (multipart upload) or a url to fetch the document from. An optional metadata JSON object can be attached.
Requires the write scope.
Create a repository document
Authorizations
Obtain a Bearer token via the Create access token endpoint using the OAuth2 client credentials flow.
Body
multipart/form-data
The document file to upload. Required if url is not provided.
A public HTTPS URL to fetch the document from. Required if file is not provided. Internal and private network addresses are blocked.
A JSON string with arbitrary metadata to attach to the document.
Example:
"{\"department\":\"Legal\",\"category\":\"Vendor\"}"