Combine uploaded chunks into one file
post
https://api.expiryedge.com/v1/composeCollectionUploadÖffentlich - kein API-Schlüssel60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/composeCollectionUpload' \
-H "Content-Type: application/json" \
-d '{
"token": "3f9a1c7e5b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a",
"fieldId": "fld_insurance",
"uploadId": "0f8e2b3c-5d6a-4e7f-9a1b-2c3d4e5f6a7b",
"storagePath": "organizations/org_northwind/collection-submissions/req_9WkT/fld_insurance-0f8e2b3c-5d6a-4e7f-9a1b-2c3d4e5f6a7b-site-photos.pdf",
"totalChunks": 3,
"contentType": "application/pdf"
}'Antwort
{
"storagePath": "organizations/org_northwind/collection-submissions/req_9WkT/fld_insurance-0f8e2b3c-5d6a-4e7f-9a1b-2c3d4e5f6a7b-site-photos.pdf"
}Second step of a chunked upload. storagePath, uploadId and totalChunks must be the values getCollectionUploadUrl returned. Fails with 400 if a chunk is missing or the combined file exceeds the field limit, 409 if already combined. The handler does not check the HTTP method.
X-Collection-PasswordstringRequest password, when the sender set one. Preferred over thepasswordbody field / query parameter.
tokenstringerforderlichThe token from the request link.pattern: ^[a-f0-9]{64}$fieldIdstringerforderlichpattern: ^[a-zA-Z0-9_-]+$uploadIdstringerforderlichformat: uuidstoragePathstringerforderlichtotalChunksintegererforderlichmin: 1 · max: 32passwordstringRequest password, when set (or use theX-Collection-Passwordheader).contentTypestringFinal content type; must match the field'sallowed_types.
200
Combined.
storagePathstringerforderlich
400 | Malformed token ( Invalid link) or invalid input. |
401 | The request has a password and it is missing ( {"requiresPassword": true}) or wrong. |
403 | The sender paused this request. |
404 | Unknown token (link rotated, deleted or mistyped), or the template no longer exists. |
409 | This upload was already combined. |
410 | The request was cancelled, already completed ( alreadySubmitted: true) or has expired. |
429 | Password locked out after 5 wrong attempts (15 minutes, per request). |
500 | Unexpected server error. |
