Skip to main content

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

HeaderRequiredValue
AuthorizationYesBearer <token>
Content-TypeYesmultipart/form-data
X-Target-ServerYesdocuments

Form Parameters

FieldTypeRequiredDescription
typestringYesDocument type (see Document Types)
filefileYesDocument 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.

500 Internal Server Error