Data Operation
Last updated
Last updated
Upload data to a dataset
Users upload data to a dataset
Acquire data upload credentials
Transfer data directly to S3
Put callback
Acquire upload credentials
Request path
GET /v1/datasets/{id}/policies
Request parameter
Path
Query
Request instance
Output
The obtained result can be deserialized directly and transferred directly to S3. extra host is the access address
Request path
POST The value of "host" within the "extra" array from the output above
Request parameter
body
Request instance
Output
Upload complete callback
Request path
PUT /v1/datasets/{id}/callback
Request parameter
Path
body
Request instance
Output
Batch callback
Request path
PUT /v1/datasets/{id}/multi/callback
Request parameter
Path
body
Request instance
Output
Create a segment
POST /v1/datasets/{id}/segments
Request parameter
Path
Body
Request instance
Output
Delete segment
DELETE /v1/datasets/{id}/segments
Path
Body
Request instance
Output
Acquire dataset segment
GET /v1/datasets/{id}/segments
Request parameter
Path
Query
Request instance
Output
Normal dataset
Upload the labelCatalog
PUT /v1/datasets/{id}/labels/catalogs
Request parameter
Path
Body
Request instance
Output
Acquire dataset label
GET /v1/datasets/{id}/labels/catalogs
Request parameter
Path
Query
Request instance
Output
Upload sensor
POST /v1/datasets/{id}/sensors
Path
Body
Distortion coefficients (p1, p2, k1, k2, k3, k4, k5, k6 and so on. The more coefficients are provided, the more accurate the calculation) ├─p1|float|No|p1 ├─p2|float|No|p2 ├─k1|float|No|k1 ├─k2|float|No|k2 ├─k3|float|No|k3
Request instance
Delete sensor
DELETE /v1/datasets/{id}/sensors
Path
Body
Request instance
Output
Acquire the sensor
GET /v1/datasets/{id}/sensors
Path
Query
Request instance
Output
List data
GET /v1/datasets/{id}/data
Request parameter
Path
Query
Request instance
Output
Normal datasets
Fusion datasets
Acquire the data resource address
GET /v1/datasets/{id}/data/urls
Request parameter
Path
Query
Request instance
Output
Upload labels
PUT /v1/datasets/{id}/labels
Request parameter
Path
Body
Request instance
Output
Acquire dataset label
GET /v1/datasets/{id}/labels
Request parameter
Path
Query
Request instance
Output
Normal dataset
Fusion datasets
Delete Data
DELETE /v1/datasets/{id}/data
Path
Body
Request instance
Output
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Descriptions
Value
draftNumber
int
Yes
Draft number
segmentName
string
No
Dataset segmentation
expired
int
No
The token expiration time measured in seconds cannot be negative. The default is 60 seconds and any time greater than 300 seconds will be treated as 300
Name
Type
Required
Descriptions
x-amz-credential
string
Yes
Consistent with the returned x-amz-credential of the previously obtained credentials
success_action_status
string
Yes
Consistent with the return value success_action_status of the previously obtained credentials
x-amz-algorithm
string
Yes
Consistent with the returned x-amz-algorithm of the previously obtained credentials
x-amz-signature
string
Yes
Consistent with the return value x-amz-signature of the previously obtained credentials
policy
string
Yes
Consistent with the returned policy of the previously obtained credentials
x-amz-date
string
Yes
Consistent with the return value x-amz-date of the previously obtained credentials
key
string
Yes
Calculate the checksum of a file with SHA-1 cryptographic hash
file
file
Yes
File
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
Yes
Draft number
checksum
string
Yes
The checksum of an uploaded file. Calculate the checksum of a file with SHA-1 cryptographic hash
remotePath
string
Yes
The remote file path, such as a.jpg
segmentName
string
Yes
Segment name
sensorName
string
No
Must be passed for the upload of fusion data; sensor name
frameId
string
No
Must be provided for the upload of fusion data. The frameID should be in the format of ulid. Please refer to https://github.com/oklog/ulid
timestamp
float
No
Not required to be provided for Fusion data upload
label
map
No
For the annotation labels of the file, please refer to uploadLabel
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
Yes
Draft number
segmentName
string
Yes
Segment name
objects
[]object
Yes
The batch callback objects
├─checksum
string
Yes
The checksum of an uploaded file. Calculate the checksum of a file with SHA-1 cryptographic hash
├─remotePath
string
Yes
The remote file path, such as a.jpg
├─sensorName
string
No
Must be passed for the upload of fusion data; sensor name
├─frameId
string
No
Must be provided for the upload of fusion data. The frameID should be in the format of ulid. Please refer to https://github.com/oklog/ulid
├─timestamp
float
No
Not required to be provided for Fusion data upload
├─label
map
No
For the annotation labels of the file, please refer to uploadLabel
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
Yes
Draft number
name
string
Yes
Segment name. This cannot be null and should not include ".",""
description
string
No
Segment description
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
Yes
Draft number
segmentName
string
Yes
segmentName
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
No
Draft number. Only one of draft and commit should exist, but they should not exist at the same time
commit
string
No
Commit ID, commit tag, or branch name
limit
int
No
The default is set to 128. The maximum value for a single time is 128
offset
int
No
The default is 0
sortBy
string
No
Currently sorting is based or created_at and updated_at while entering other content will return InvalidParamsValue.
orderBy
string
No
The default is desc (descending order). The valid content is asc (ascending order) and desc
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
Yes
Draft number
catalog
map
yes
Annotation Type. key: CLASSIFICATION: annotation classification BOX2D: 2D box annotation BOX3D: 3D box annotation POLYGON2D: 2D polygon annotation POLYLINE2D: 2D polyline annotation KEYPOINTS2D: 2D keypoints annotation CUBOID2D: 2D cuboid annotation SENTENCE: audio transcription annotation For the annotation type above, each one of them has its own structure. You can refer to the request instances for detailed information. Please follow the format of the input value for each annotation type
├─description
string
false
Descriptions
├─categoryDelimiter
string
false
The delimiter used to separate the parent-child relationship of category. The default is not to support the parent-child relationship. The recommended delimiter is "."
├─categories
object[]
false
Item type: object and category list, which includes all category information
├─isTracking
bool
No
Tracking or not
├─name
string
yes
Category name
├─description
string
No
Category description
├─attributes
object[]
No
Item type. It includes attribute-related information
├─name
string
Yes
Attribute name
├─type
string/string[]
false
attribute type:string, boolean, integer, number, array, null,such as"interger", ["integer", "null"]
├─minimum
float
No
The minimum value of the attribute. When the attribute is numerical, this field defines the minimum value (closed interval)
├─maximum
float
No
The maximum value of the attribute. When the attribute is numerical, this field defines the maximum value (closed interval)
├─description
string
No
Attribute description
├─enum
string[]
No
The options of the value of an attribute. This represents all the possible options this attribute may have.
├─parentCategories
string[]
No
Relational categories represent the categories to which the attribute belongs to. If it is empty, then this is a global attribute
├─items
object[]
No
Item type that defines multiple attributes. (When the "type" field is "array", it indicates multiple attributes)
├─type
string/string[]
No
type of an attribute value with multiple options:string, boolean, integer, number, array, null,such as "interger", ["integer", "null"]
├─minimum
float
No
The minimum value (closed interval) of the attribute value with multiple options
├─maximum
float
No
The maximum value (closed interval) of the multiple attribute
├─enum
string[]
No
The enumeration of the value of an attribute with multiple options. This represents all the possible options this attribute may have.
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
No
Draft number. Only one of draft and commit should exist, but they should not exist at the same time
commit
string
false
Commit ID, commit tag, or branch name
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
是
Draft number
segmentName
string
Yes
Segment Name
name
string
Yes
Sensor name
type
string
Yes
Sensor type
description
string
No
Descriptions
extrinsics
object
No
The extrinsics of sensor
├─rotation
object
No
Rotation matrix
├─w
float
Yes
w
├─x
float
Yes
x
├─y
float
Yes
y
├─z
float
Yes
z
├─translation
object
No
Translation matrix
├─x
float
Yes
x
├─y
float
Yes
y
├─z
float
Yes
z
intrinsics
object
No
The intrinsics of sensor (required only for camera-like devices)
├─cameraMatrix
object
No
├─cx
float
Yes
├─cy
float
Yes
cy
├─fx
float
Yes
fx
├─fy
float
Yes
fy
├─skew
float
No
skew
├─distortionCoefficients
object
No
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
Yes
Draft number
segmentName
string
Yes
Segment name
sensorName
string
Yes
Sensor name
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
No
Draft number. Only one of draft and commit should exist, but they should not exist at the same time
commit
string
No
The tag of commitId or commit
segmentName
string
Yes
Segment name
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
No
Draft number. Only one of draft and commit should exist, but they should not exist at the same time
commit
string
No
Commit ID, commit tag, or branch name
segmentName
string
Yes
Segment name
limit
int
No
The default is set to 128. The maximum value for a single time is 128
offset
int
No
The default is 0
sortBy
string
No
Currently sorting is based on created_at and updated_at while entering other content will return InvalidParamsValue.
orderBy
string
No
The default is desc (descending order). The valid content is asc (ascending order) and desc
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
No
Draft number. Only one of draft and commit should exist, but they should not exist at the same time
commit
string
No
Commit ID, commit tag, or branch name
remotePath
string
No
The data path. If you want to pass a value, search for the specific URL of this data
segmentName
string
Yes
Segment name
limit
int
No
The default is set to 128. The maximum value for a single time is 128
offset
int
No
The default is 0
sortBy
string
No
Currently sorting is based on the name (remotePath) and supports created_at and updated_at while entering other contents would return InvalidParamsValue
orderBy
string
No
The default is desc (descending order). The valid content is asc (ascending order) and desc
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
Yes
Draft number
segmentName
string
Yes
Segment name
remotePath
string
Yes
The corresponding resources
label
map
Yes
Label. key: CLASSIFICATION: annotation classification BOX2D:2D box annotation BOX3D: 3D box annotation POLYGON2D: 2D polygon annotation POLYLINE2D: 2D polyline annotation KEYPOINTS2D: 2D keypoints annotation CUBOID2D: 2D cuboid annotation SENTENCE: audio transcription annotation Please refer to the request instances for the corresponding value content format for each key. Please follow the format of the input parameters for each annotation type.
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
No
Draft number. Only one of draft and commit should exist, but they should not exist at the same time
commit
string
No
Commit ID, commit tag, or branch name
limit
int
No
The default is set to 128. The maximum value for a single time is 128
offset
int
No
The default is 0
segmentName
string
Yes
Segment name
sortBy
string
No
Currently sorting is based on created_at and updated_at while entering other content will return InvalidParamsValue.
orderBy
string
No
The default is desc (descending order). The valid content is asc (ascending order) and desc
Name
Descriptions
Value
id
Yes
Dataset ID
Name
Type
Required
Descriptions
draftNumber
int
Yes
Draft number
segmentName
string
Yes
Segment name
remotePaths
string[]
Yes
The list of remote paths that needs to be deleted. The number of the list should not be greater than 128