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.
Obtain a Bearer token via the Create access token endpoint using the OAuth2 client credentials flow.
The document file to upload. Required if url is not provided.
A public HTTP/HTTPS URL to fetch the document from. Required if file is not provided. Internal/private addresses are blocked.
A JSON string with arbitrary metadata to attach to the document.
"{\"department\":\"Legal\",\"category\":\"Vendor\"}"