_id.
1
Upload the file
Category Surplus Lines. PDF, DOC, DOCX, JPEG or PNG, up to 10 MB. Leave Use a new
downstreamEntityAssociationId out: the file belongs to the filing, not to an agency, and sending it returns 400.Uploading needs the Tools product feature as well as Surplus-Lines Filing. Without it, Upload a Document returns 403.Idempotency-Key for every file. The key alone decides a replay, so reusing one within the hour returns the first file’s id. See Idempotency.2
Keep the id from the response
data._id is the new document’s id. The attach calls take it as fileDocumentId.3
Attach it to the filing
One call, depending on where the file belongs:
- As the policy document: Set the Policy Document, JSON body
{ "fileDocumentId": "..." }. - On a checklist item: Attach Uploaded Files to a Checklist Item, JSON body with the item’s
sourceCategoryIdandsourceTaskId, plusfileDocumentIds. The two item ids come from the filing’s checklist in Get a Surplus Lines Filing. - In answer to a Turris escalation: Reply to a Checklist Item Escalation, JSON body with the item’s
sourceCategoryIdandsourceTaskId, plusfileDocumentIds.