Platrium Docs

Commit an upload session and finalize the file

POST
/files/uploadsession/commit

Commit an upload session and finalize the file layout using the provided cryptographic receipts.

Header Parameters

x-platrium-uploadsession*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/files/uploadsession/commit" \  -H "x-platrium-uploadsession: string" \  -H "Content-Type: application/json" \  -d '{    "chunks": [      {        "hash": "string",        "receipt": "string"      }    ]  }'
{  "file_id": "string"}
{  "debuginfo": "string"}