Skip to Content
Open Retainer
Files

Finalize a file upload

POST
/v1/files/{id}/finalize

Requires the write scope.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A workspace API key.

Path Parameters

id*string

Retainer identifier.

Formatuuid

Response Body

Successful response.

application/json
  1. response
name*string
Length1 <= length <= 200
mediaType*string
Match^[a-z0-9][a-z0-9!#$&^_.+-]*\/[a-z0-9][a-z0-9!#$&^_.+-]*$
Lengthlength <= 150
bytes*integer
Range1 <= value <= 26214400
sha256*string
Match^[a-f0-9]{64}$
id*string
Formatuuid
state*"ready"
Value in"ready"
Example Request
curl -X POST 'https://retainer.tamloot.cc/v1/files/d2c0648c-2994-4f16-bdf1-a0136be6037d/finalize' \  -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY'
Example Response
{  "name": "string",  "mediaType": "string",  "bytes": 1,  "sha256": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "state": "ready"}