Upload Document
POST
/org/sessions/{session_id}/documents
const url = 'https://engine.bindly.insure/org/sessions/example/documents';const form = new FormData();form.append('file', 'file');
const options = {method: 'POST'};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://engine.bindly.insure/org/sessions/example/documents \ --header 'Content-Type: multipart/form-data' \ --form file=@fileAttach a supporting document (loss runs, supplemental, prior policy) that rides along in the Hedge submission packet, mirroring the Bindly app’s upload. Field extraction into the session is best-effort.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
Session Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
Body_upload_document_org_sessions__session_id__documents_post
object
file
required
File
A supporting PDF to attach (max 20 MB).
string format: binary
Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}