Upload File to Storage

Upload your file to the presigned URL obtained from the previous step.

Request Method

PUT

Request URL

{{Presigned URL generated in Step 1}}

Request Headers

Parameter
Data Type
Field Validations
Description

Content-Type

String

NA

Mandatory. Content type based on the file to be uploaded in the body.

csv: text/csv xls: application/vnd.ms-excel xlsx: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet zip: application/zip

Request Path Params

There are no path parameters for this API.

Request Query Params

There are no query parameters for this API.

Request Body

The request body should contain the binary file data. Use --data-binary flag in curl to upload the file content directly without any encoding modifications.

Response Status Codes

HTTP Status Code
Description

200

Request processed successfully and response returned.

400

Bad Request. The request is invalid or missing required parameters.

403

User not authorized or URL expired

500

Something went wrong on the server.

Response Schema

This API returns the HTTP status code directly without a JSON body on success.

HTTP Status
Response

200

Empty body

400

XML error message from S3

403

XML error - Access denied or URL expired

Sample Request and Response

Sample Success

Request cURL

Response Status Code

200

Response Body

The response body will be empty body

Sample Error

Request cURL

Response Status Code

403

Response Body

API Validations

Currently there are no known validations.

API Constraints

Once a pre-signed URL is generated, it will be valid for only 1 hour. If upload fails, generate a new pre-signed URL and try again.

Last updated

Was this helpful?