Add attachments in a service portal
In the Consumer Service Portal (Service Portal), consumers can add
attachments to claims and policies. Adding an attachment is a multistage process that begins
with using the multifileupload
servlet to upload the file to the server and
ends by including an attachment reference from the claim or policy to the file.
- Adding an attachment to a loss event.
- To add an attachment to a loss event, the portal calls the
POST /multifileupload
API to upload the attachment to the server and then the portal retrieves the name from the response. Finally, the portal provides the document’s file name when it calls thePOST /claimevents
endpoint to submit the claim. - Adding an attachment to an existing claim
- To add an attachment to a claim, the portal calls the
POST /multifileupload
API to upload the attachment to the server and then the portal retrieves the name from the response. Finally, the portal calls thePOST /claims/systemId/documents
endpoint to add a attachment reference to the claim.
- Add an attachment to a policy
- To add an attachment to a policy the portal calls the
POST /multifileupload
API to upload the attachment to the server and then the portal retrieves the name from the response. Finally, the portal calls thePOST /policies/systemId/documents
endpoint to add a attachment reference to the policy.