Upload Document
POST /v1/documents
Uploads a compliance document. Uses multipart/form-data content type. If a document with the same type already exists for the node, it is replaced (upsert behavior).
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <token> |
Content-Type | Yes | multipart/form-data |
X-Target-Server | Yes | documents |
Form Parameters
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Document type (see Document Types) |
file | file | Yes | Document file (max 100 MB) |
Response
201 Created
Document uploaded successfully. No response body.
400 Bad Request
Missing file or invalid document type.
{
"code": 0,
"domain": 0,
"message": "file is required"
}
401 Unauthorized
413 Payload Too Large
File exceeds 100 MB limit.