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

CommitDataset

Commit Dataset

Commit the update of the dataset in draft.

Request Path

POST /v1/datasets/{id}/commits

Request Parameters

Path

NameNecessary or NotDescription
idTrueDataset ID

Body

NameTypeNecessary or NotDescription
messagestringTrueSubmit message
tagstringFalseTag of dataset version

Request Example

1curl --location --request POST '{service}/v1/datasets/154e35ba-e895-4f09-969e-f8c9445efd2c'\
2--header 'x-token: {your_accesskey}'\
3--header 'Content-Type: application/json' \
4--data-raw '{
5    "message": "my great data set",
6    "tag": "test"
7}'

Return Result

1# response status
2HttpStatus 200
3# response result
4{
5  "commitId": ""
6}

Error code

codemessagehttp status
AccessDeniedThe request was rejected. You need access to commit the dataset403
RequestParamsMissingCommit message cannot be empty400
NameConflictName duplication400
ResourceNotExistDataset {id} does not exist404
UnauthorizedIncorrect Accesskey401
立即开始构建AI
免费开始联系我们