Create Base Asset - Get Upload Link
POST/api/v2/rawmodel/api-upload/start
This endpoint initiates a new base asset upload process and returns:
- An ID for the new base asset
- Pre-signed URLs for direct file uploads to our s3 storage
Upload Process:
- Call this endpoint to get the upload URLs
- For each file in the s3_upload_urls:
- Upload the file using an HTTP PUT request to the provided URL
- After ALL files are uploaded, call the complete_upload URL to finalize the process
Step by Step Usage:
- Upload mymodel.glb:
- curl -X PUT -T "mymodel.glb" "use-signed-url-for-glb"
- Upload material.mat:
- curl -X PUT -T "material.mat" "use-signed-url-for-mat"
- Finally, call the complete_upload URL:
- curl -X GET "use-complete-upload-url"
Request
Responses
- 200
success