Skip to content

Import Dataset

POSThttps://portal-prod.rosettalab.top/rosetta-open/dataset/import/async

This page will help you get started with importing a dataset from cloud storage asynchronously, you need to put the files according to a specific file tree structure, refer to File tree.

body params

*resourceUrlstring
The resource url on cloud storage, start with gs://bucket-name/
*fileTreeTypestring
File tree in storage: 0 represents sensor oriented.
*dataTypeinteger
Data type: 2 represents 2D, 3 represents 3D.
*namestring
Dataset name, the maximum length limit is 60 bytes.
Examples
shell
curl https://portal-prod.rosettalab.top/rosetta-open/dataset/import/async \
 -X POST \
 -H "Content-Type: application/json" \
 -H "X-STARDUST-KEY: <X-STARDUST-KEY>" \
 -H "X-TS: <X-TS>" \
 -H "X-SIGN: <X-SIGN>"

responses

200
{
"code": 200,
"message": "Success",
"data": {
"datasetId": "1",
"status": 1
},
"date": "2024-05-16 19:03:34",
"requestId": "864b70706a7349ea83e177a49800464f",
"success": true
}
5710
{
"code": 5710,
"data": null,
"date": "2024-05-16 19:03:34",
"message": "File tree misalignment, refer to API doc for correction",
"requestId": "864b70706a7349ea83e177a49800464f",
"success": false
}

File tree