DataSet Operation
ListAuthStorageConfig
ListAuthStorageConfig
Acquire the list of authentication configuration
Request path
GET /v1/auth-storage-configs
Request parameter
Query
Name | Type | Required | Descriptions |
name | string | No | Configuration Name |
limit | int | No | Need to be greater than 0 and the default is 128 with a maximum of 128 for a single acquisition |
offset | int | No | The default is 0 |
Request instance
Output
CreateDataset
Create a dataset
Create a TensorBay dataset with version control. The dataset name must be unique
Request path
POST /v1/datasets
Request parameter
Body
Name | Type | Required | Descriptions |
name | string | Yes | Dataset name |
type | int | No | The default is 0, 0-normal dataset; 1-Fusion dataset |
storageConfig | object | No | Create parameters for using authenticated datasets; mutually exclusive with regions |
├─name | string | Yes | Configuration name |
├─name | path | No | Create storage path for datasets |
Request instance
Output
id: the ID of the created dataset
DeleteDataset
Delete a dataset
DELETE /v1/datasets/{id}
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Body
Name | Type | Required | Descriptions |
commit | string | No | Commit ID or commit tag |
Request instance
Output
UpdateDataset
Update dataset information
PATCH /v1/datasets/{id}
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Body
Name | Type | Required | Descriptions |
name | string | No | dataset name, and the provided value cannot be the empty value "". |
Request instance
Output
ListDataset
List datasets
Return the list of datasets owned by the user:
Individual users acquire the list of datasets under their personal accounts
Team users acquire the list of datasets under their enterprise accounts
Request path
GET /v1/datasets
Request parameter
Query
Name | Type | Required | Descriptions |
limit | int | No | Need to be greater than 0 and the default is 128 with a maximum of 128 for a single acquisition |
offset | int | No | The default is 0 |
name | string | No | Dataset name |
needFuzzyQuery | bool | No | If true, fuzzy query of the dataset name is supported. |
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 |
Request instance
Output
datasets: List of datasets
id: Dataset ID
name: Dataset name
defaultBranch: default branch name
type: the default is 0, 0-normal dataset, 1-Fusion dataset
GetDataset
Request path
GET /v1/datasets/{id}
Request parameter
PATH
Name | Descriptions | Value |
id | Yes | Dataset ID |
Request instance
Output
CreateBranch
Create a branch
Create a branch
Request path
POST /v1/datasets/{id}/branches
Request parameter
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Query
Name | Type | Required | Descriptions |
name | string | Yes | The name of the created branch |
commit | string | Yes | The commit that branch is based on. It can be commit ID, commit tag, or branch name |
Request instance
Output
DeleteBranch
Delete branch
Delete branch
Request path
DELETE /v1/datasets/{id}/branches
Request parameter
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Query
Name | Type | Required | Descriptions |
name | string | Yes | Branch name |
Request instance
Output
ListBranch
Acquire a branch list
Acquire a list of dataset branches
Request path
GET /v1/datasets/{id}/branches
Request parameter
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Query
Name | Type | Required | Descriptions |
limit | int | No | Need to be greater than 0 and the default is 128 with a maximum of 128 for a single acquisition |
offset | int | No | The default is 0 |
Request instance
Output
CreateDraft
Create a dataset draft
Create a TensorBay dataset draft. Only one draft can be created on a branch
Request path
POST /v1/datasets/{id}/drafts
Request parameter
Path
Name | Required | Descriptions |
id | Yes | Dataset ID |
Body
Name | Type | Required | Descriptions |
title | string | No | Draft name |
branchName | string | No | Branch name. The default branch is named as main |
Request instance
Output
draftNumber: draft number
ListDraft
Acquire a list of dataset drafts
Acquire a list of dataset drafts
Request path
GET /v1/datasets/{id}/drafts
Request parameter
Path
Name | Required | Descriptions |
id | Yes | Dataset ID |
Query
Name | Type | Required | Descriptions |
limit | int | No | Need to be greater than 0 and the default is 128 with a maximum of 128 for a single acquisition |
offset | int | No | The default is 0 |
Request instance
Output
CommitDataset
Commit a dataset
Update a dataset with a pending status to a committed status. Once a dataset is published, it cannot be modified.
Request path
POST /v1/datasets/{id}
Request parameter
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Body
Name | Type | Required | Descriptions |
draftNumber | int | Yes | Draft number |
title | string | yes | The number of characters of the submitted title should be less than 255 |
tag | string | No | Dataset version tag. The number of characters should range from 2 to 80 |
Request instance
Output
ListCommit
list commits
Acquire a list of dataset commits
Request path
GET /v1/datasets/{id}/commits
Request parameter Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Query
Name | Type | Required | Descriptions |
commit | string | No | Commit ID, commit tag, or branch name. The default is the default branch |
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 |
Request instance
Output
CreateTag
Create a tag
Create a tag
Request path
POST /v1/datasets/{id}/tags
Request parameter
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Body
Name | Type | Required | Descriptions |
commit | string | Yes | Commit ID, commit tag, or branch name |
name | string | Yes | Tag name. The number of characters should range from 2 to 80 |
Request instance
Output
DeleteTag
Delete a tag
Delete a tag
Request path
DELETE /v1/datasets/{id}/tags
Request parameter
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Body
Name | Type | Required | Descriptions |
name | string | Yes | tag name |
Request instance
Output
ListTag
List tags
Acquire a list of dataset tags
Request path
GET /v1/datasets/{id}/tags
Request parameter
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Query
Name | Type | Required | Descriptions |
name | string | 否 | tag 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 |
Request instance
Output
updateNote
Update a dataset note
Update a dataset note
Request path
PATCH /v1/datasets/{id}/notes
Request parameter
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Body
Name | Type | Required | Descriptions |
draftNumber | int | Yes | draft number |
binPointCloudFields | string[] | No | Dimension name of the point cloud in bin format |
isContinuous | bool | No | Is it continuous |
Request instance
Output
GetNote
Get note
Get the note of a dataset
Request path
GET /v1/datasets/{id}/notes
Request parameter
Path
Name | Descriptions | Value |
id | Yes | Dataset ID |
Query
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 |
Request instance
Output
Last updated