Upload a new document
/documents
Create a new document with file content
Returns
Upload a new document
curl https://$WITHLUMINARY_SUBDOMAIN.withluminary.com/api/public/v1/documents \
-H 'Content-Type: multipart/form-data' \
-F file=undefined \
-F household_id=household_01ARZ3NDEKTSV4RRFFQ69G5FAV \
-F name='Trust Agreement.pdf' \
-F type=GRAT_DESIGN_SUMMARY \
-F client_profile_id=client_profile_01ARZ3NDEKTSV4RRFFQ69G5FAV \
-F entity_id=entity_01ARZ3NDEKTSV4RRFFQ69G5FAV
{
"id": "document_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "Trust Agreement.pdf",
"type": "GRAT_DESIGN_SUMMARY",
"updated_at": "2024-01-20T14:45:00Z",
"client_profile_id": "client_profile_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"enable_ai_suggestions": true,
"entity_id": "entity_01ARZ3NDEKTSV4RRFFQ69G5FAV"
}
Returns Examples
{
"id": "document_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "Trust Agreement.pdf",
"type": "GRAT_DESIGN_SUMMARY",
"updated_at": "2024-01-20T14:45:00Z",
"client_profile_id": "client_profile_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"enable_ai_suggestions": true,
"entity_id": "entity_01ARZ3NDEKTSV4RRFFQ69G5FAV"
}