Skip to main content

Create a new deployable Asset

POST 

/assets/create

Creates an asset in the system. Returns ID of the asset and a URL which can be used to upload the asset. The asset upload URLs are s3 compaitible and you can upload the assset in single request or through multipart upload over multiple parallel connections.

The multipart upload will be valid for 24Hrs only. And if the upload is not completed within 24 Hrs, the partial uploaded parts will be deleted.

You need to call completeUpload API afte uploading the asset. ::

You can upload only one file in asset. If you want to bundle multiple files in single asset, you need to combine them in an archive like zip or tar. ::

In response you will receive a URL on which PUT request needs to be made. A curl example is given below

curl -X PUT {Upload URL} \
--header 'Content-Disposition: attachment;filename={filename}' \
--header 'Content-Type: application/octet-stream'
-d @path/to/file

Request

Responses

OK