Create Base Asset - Get Upload Link
POST/api/v2/rawmodel/api-upload/start
Calling this endpoint will return an id for the new base asset and presigned URLs which need to be used to upload the files directly to our storage. The URLs are unique for every file. The "complete_upload" field will contain a link to the "Create Base Asset - Complete Upload" endpoint that needs to be called when the upload is done
Request
- application/json
Body
required
model_name stringrequired
The name of the base asset
filenames string[]required
The names of the files to be uploaded
is_zip boolean
Indicate if the file is a zip
Responses
- 200
success
- application/json
- Schema
- Example (from schema)
Schema
id integer
links object
s3_upload_urls object
mymodel.glb string
material.mat string
complete_upload string
{
"id": 1,
"links": {
"s3_upload_urls": {
"mymodel.glb": "signed url for mymodel.glb",
"material.mat": "signed url for material.mat"
},
"complete_upload": "https://api.rapidpipeline.com/api/rawmodels/1/api-upload/complete"
}
}
Loading...