POST
/
file-uploads
Post File Upload
curl --request POST \
  --url https://api.sandbox.isometric.com/mrv/v0/file-uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '{
  "content_length": 123,
  "content_type": "<string>",
  "file_name": "<string>"
}'
{
  "id": "<string>",
  "upload_url": "<string>"
}

Authorizations

Authorization
string
header
required

A JWT Bearer token header for authentication and authorization, in the format Authorization: Bearer <token>

Headers

x-client-secret
string
required

A secret token identifying the client connecting to the API

Examples:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Body

application/json
content_length
integer
required

The size (in bytes) of the file that will be uploaded. The pre-signed URL will only accept a file of this size.

Required range: x <= 100000000
content_type
string
required

The content type of the file that will be uploaded. This must also be passed as a 'content-type' header during the upload. The pre-signed URL will only accept a file of this content-type.

Allowed value: "application/vnd.apache.parquet"
file_name
string
required

The original filename of the file that will be uploaded. This is used for display purposes only and does not affect the upload process.

Response

Successful Response

id
string
required
upload_url
string
required

A presigned upload URL, which must be used to upload the document associated with this source.