Uploading a document
Use the Create repository document endpoint. You need a token with thewrite scope.
Upload a file
Upload from a URL
file or url — not both.
Attaching metadata
You can attach arbitrary metadata to a document using themetadata field: