API reference
POSTRequires Bearer token
Upload a document
/api/edm/documents
Multipart. folder_id is required. metadata is a JSON object string; tags is a JSON array or CSV.
Path parameters
This endpoint has no path parameters.
Query parameters
This endpoint has no query parameters.
Request body
Send as multipart/form-data.
| Field | Type | Description |
|---|---|---|
file Required | string | Document file. e.g. "example" |
folder_id Required | string | Destination folder UUID. e.g. "uuid_or_id" |
typology_id | string | Typology UUID. |
name | string | Display name (defaults to the file name). e.g. "Contract 2026.pdf" |
status | string | Initial status (default draft).e.g. "draft" |
metadata | string | JSON object of business metadata. e.g. "{\"consent\":\"GDPR\"}" |
tags | string | JSON array or comma-separated tags. e.g. "client-x,urgent" |
client_ref | string | Client reference. |
contract_ref | string | Contract reference. |
transaction_ref | string | Transaction reference. |
Responses
| Status | Meaning |
|---|---|
| 201 | Uploaded |
| 401 | Missing or invalid Bearer token. |