Documents
Create document
Creates a new compliance document for an AccountHolder.
Physical file storage is handled out-of-band — this endpoint only records the storage reference (file_key, file_name, content_type, file_size).
At most one document may be primary = true per (account_holder_id, name) combination. A secondary (primary = false) may not be created until a primary exists.
post/api/documents
Request
- Base URL: http://localhost:4100
- URL: http://localhost:4100/api/documents
- Auth: none required
Request body
Example request
{
"account_holder_id": "02ef9c5f-29e6-48fc-9ec3-7ed57ed351f6",
"content_type": "",
"description": "",
"document_number": "",
"document_type": "identity_document",
"file_key": "",
"file_name": "",
"file_size": 0,
"metadata": {},
"name": "",
"primary": false,
"status": "draft",
"tenant_id": "02ef9c5f-29e6-48fc-9ec3-7ed57ed351f6"
}Changes
No recorded changes to this operation across all 4 revisions of this API.