POST
/
v1
/
assets
/
upload
curl --request POST \
  --url https://api.runtrellis.com/v1/assets/upload \
  --header 'Content-Type: application/json' \
  --header 'X-Frontend-Id: <api-key>' \
  --data '{
  "proj_id": "<string>",
  "urls": [
    "<string>"
  ],
  "file_types": [
    "<string>"
  ],
  "ext_ids": [
    "<string>"
  ],
  "ext_file_names": [
    "<string>"
  ],
  "chunk_strategy": "<string>",
  "include_header": true,
  "main_keys": [
    "<string>"
  ],
  "file_type": "<string>"
}'
{
  "message": "<string>",
  "metadata": {
    "total_results_count": 123,
    "total_filtered_results_count": 123
  },
  "data": [
    {
      "asset_id": "<string>",
      "ext_file_name": "<string>",
      "ext_file_id": "<string>",
      "file_type": "<string>",
      "url": "<string>",
      "status": "uploaded",
      "proj_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

X-Frontend-Id
string
header
required

Frontend Key header

Body

application/json
proj_id
string
required
urls
string[]
required
file_types
string[]
ext_ids
string[]
ext_file_names
string[]
chunk_strategy
string
include_header
boolean
default:
true
main_keys
string[]
file_type
string

Response

200
application/json
Successful Response
message
string
required
data
object[]
required
metadata
object