Upload document to upload entry

POST {{baseUrl}}/.file_upload_api/file_upload/:uploadID/add_chunk?chunkIndex=0

This endpoint uploads data into the file upload entry created by the previous POST, as a binary file in the body of the call.

Request Params

| Key | Datatype | Required | Description | | chunkIndex | number | | Required Integer

If the file is larger than the chunk size returned in the previous call, it must be uploaded separately in multiple chunks. This parameter is the index of the current chunk. For single chunk files, this should always be 0.

This endpoint returns NextChunkIndex in the response, for subsequent calls.

Example:

  • 0 |

HEADERS

| Key | Datatype | Required | Description | | Content-Length | null | | Required Integer

The size, in bytes of the file being uploaded.

Example: {{$randomInt}}{{$randomInt}} |

RESPONSES

status: OK

"\u003cIglooApiResponse xmlns=\"http://schemas.iglooplatform.com/Igloo.Old.Common\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"\u003e\n    \u003cminRequestPeriod\u003e0\u003c/minRequestPeriod\u003e\n    \u003crequestSupportCode\u003e637606847923692231\u003c/requestSupportCode\u003e\n    \u003cdictionary i:nil=\"true\" xmlns:a=\"http://schemas.microsoft.com/2003/10/Serialization/Arrays\"/\u003e\n    \u003cresponse i:type=\"Model.FileUpload\"\u003e\n        \u003cid\u003e\u003c/id\u003e\n        \u003chref/\u003e\n        \u003cnavType\u003eNone\u003c/navType\u003e\n        \u003cCanBeWatermarked\u003efalse\u003c/CanBeWatermarked\u003e\n        \u003cCategories/\u003e\n        \u003cChunkSize\u003e5242880\u003c/ChunkSize\u003e\n        \u003cDescription/\u003e\n        \u003cDocumentHref\u003e{{$randomFilePath}}\u003c/DocumentHref\u003e\n        \u003cDocumentId\u003e{{$randomUUID}}\u003c/DocumentId\u003e\n        \u003cDocumentTitle\u003e{{$randomVerb}}\u003c/DocumentTitle\u003e\n        \u003cLastUploadTick\u003e{{$randomDateRecent}}\u003c/LastUploadTick\u003e\n        \u003cNextChunkIndex\u003e1\u003c/NextChunkIndex\u003e\n        \u003cOwnerId\u003e{{$randomUUID}}\u003c/OwnerId\u003e\n        \u003cParentHref/\u003e\n        \u003cParentId/\u003e\n        \u003cParentTitle/\u003e\n        \u003cTitle\u003e{{$randomFileName}}\u003c/Title\u003e\n        \u003cTotalBytes\u003e{{$randomBankAccount}}\u003c/TotalBytes\u003e\n        \u003cTransferredBytes\u003e619397\u003c/TransferredBytes\u003e\n        \u003cValidationChunk\u003e0\u003c/ValidationChunk\u003e\n        \u003cValidationChunkSize\u003e1048576\u003c/ValidationChunkSize\u003e\n    \u003c/response\u003e\n\u003c/IglooApiResponse\u003e"