Create Base Asset - Get Upload Link
POST/api/v1/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
Header Parameters
Authorization string
Example: Bearer {YOUR_AUTH_KEY}
Content-Type string
Example: application/json
Accept string
Example: application/json
- 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
{
"id": 1,
"links": {
"s3_upload_urls": {
"mymodel.glb": "signed url for mymodel.glb",
"material.mat": "signed url for material.mat"
},
"complete_upload": "https://api.rapidcompact.com/api/rawmodels/1/api-upload/complete"
}
}
Loading...