graviti logo产品公开数据集关于我们
登录
345
0
0
LeuvenStereoScene
概要
讨论
代码
活动
非数据集成员无法通过开发者工具直接使用该数据集,您可通过Fork后获取和使用数据
Fork数据集

ListSegment

Get Segment list of a Dataset

GET /v1/datasets/{id}/segment

Request Parameters

Path

NameNecessary or NotDescription
idTrueDataset ID

Query

NameTypeNecessary or NotDescription
commitstringFalseCommit Id or Tag of Commit
limitintFalsedefault: 128 (one-time)
offsetintFalsedefault: 0

Request Example

1curl --location --request GET '{service}/v1/datasets/154e35ba-e895-4f09-969e-f8c9445efd2c/segment?commit='\
2--header 'x-token: {your_accesskey}'\
3--header 'Content-Type: application/json' 

Return Result common dataset

1# response status
2HttpStatus 200
3{
4    "segments": ["graviti"],
5    "offset": 0,
6    "pageNumber": 0,
7    "pageSize": 1,
8    "pageCount": 1,
9    "recordSize": 1,
10    "totalCount": 1
11}

Error Code

codemessagehttp status
AccessDeniedThe request was rejected. You do not have the access to view the dataset403
ResourceNotExistDataset {id} does not exist404
InvalidParamsValueInvalid parameter value400
UnauthorizedIncorrect Accesskey401
立即开始构建AI
免费开始联系我们