submit_documents
Generates a secure presigned URL for uploading a document to SecureLend's document storage, and records the document metadata against the application in SecureLend's database. Creates a persistent document record. Called by the document upload widget after the user selects a file. This creates a persistent document record and enables upload to SecureLend storage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | The original name of the file. | |
| documentType | Yes | The category of the document. | |
| applicationId | Yes | The ID of the application to associate the document with. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| success | Yes | ||
| uploadUrl | No | ||
| documentId | No | ||
| uploadFields | No |