PUT api/Insured/UploadInsuredFile?insuredId={insuredId}&folderId={folderId}&creatorName={creatorName}&isInsuredVisibleFolder={isInsuredVisibleFolder}

Use this endpoint to upload file to insured folder. Body must be of multipart/form-data content with appropriate headers. Only one file at a time is allowed to attach. To create a new folder under some specific folder,use CreateFolder end point by passing files->databaseId (of type 2 (Folder)) from GetInsuredFilesList end point as a parent id. This will create new folder under specific folder. Use files->databaseId (of type 2 (Folder)) from GetInsuredFilesList or data->databaseId from CreateFolder end point as a folder id in UploadInsuredFile. This will upload file in that particular folder.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
insuredId

Database ID of an insured.

globally unique identifier

Required

folderId

Database ID of subfolder. Optional parameter that you may pass to upload a file to a certain insured files subfolder.

globally unique identifier

None.

creatorName

Name of the agent that will be set as file uploader if auth user exists for the agent. Optional.

string

None.

isInsuredVisibleFolder

This parameter indicates if upload will happen into Insured Visible Folder if no folderId specified.

boolean

None.

Body Parameters

None.

Response Information

Resource Description

Common API response.

NowCertsApiResultOfFileList
NameDescriptionTypeAdditional information
Status

ApiStatus

None.

Data

FileList

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 0,
  "data": {
    "databaseId": "4fa21044-ecc7-4b41-b963-b259404f37d4",
    "name": "sample string 2",
    "path": "sample string 3",
    "downloadUrl": "sample string 4",
    "downloadUrlExpiresAtUtc": "2024-04-18T12:24:53.7185331-05:00",
    "type": 0,
    "mime": "sample string 5",
    "size": 6,
    "createDate": "2024-04-18T12:24:53.7185331-05:00",
    "changeDate": "2024-04-18T12:24:53.7185331-05:00",
    "creatorName": "sample string 9",
    "isInsuredVisibleFolder": true,
    "fileOrFolder": "sample string 11"
  },
  "message": "sample string 1"
}

application/xml, text/xml

Sample:
<NowCertsApiResultOfFileListodPQ2rGR xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.NowCertsFulcrum">
  <Data>
    <ChangeDate>2024-04-18T12:24:53.7185331-05:00</ChangeDate>
    <CreateDate>2024-04-18T12:24:53.7185331-05:00</CreateDate>
    <CreatorName>sample string 9</CreatorName>
    <DatabaseId>4fa21044-ecc7-4b41-b963-b259404f37d4</DatabaseId>
    <DownloadUrl>sample string 4</DownloadUrl>
    <DownloadUrlExpiresAtUtc>2024-04-18T12:24:53.7185331-05:00</DownloadUrlExpiresAtUtc>
    <FileOrFolder>sample string 11</FileOrFolder>
    <IsInsuredVisibleFolder>true</IsInsuredVisibleFolder>
    <MIME>sample string 5</MIME>
    <Name>sample string 2</Name>
    <Path>sample string 3</Path>
    <Size>6</Size>
    <Type>File</Type>
  </Data>
  <Message>sample string 1</Message>
  <Status>Error</Status>
</NowCertsApiResultOfFileListodPQ2rGR>