graviti
ProductOpen DatasetsApps MarketSolutionsResourcesCompany
1.4K
0
0
MNIST
General
Discussion
Code
Activities
Dataset non-members cannot use this dataset via developer tools. You can access and use the data after forking the dataset.
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