Dataset
Create
Used to create dataset.
POST
URL:{{base_url}}/api/{{version}}/dataset/create
Headers
Authorization*
API key
Content-Type*
Application/jsonn
Request Body
file*
form-data
Zip file.
name*
form-data
Name of the dataset.
task_type*
form-data
Type of dataset.
description*
form-data
Description of the dataset.
{
"data": {
"dataset_id": "String"
},
"message": "created successfully",
"status": 200
}
View
Used to list datasets.
GET
URL:{{base_url}}/api/{{version}}/dataset/view
Headers
Authorization*
API key
Content-Type*
Application/jsonn
{
"data": {
"datasets": "List of datasets"
},
"message": "string",
"status": 200
}
View
Used to get details of a particular dataset.
GET
URL:{{base_url}}/api/{{version}}/dataset/:id/view
Path Parameters
id
String
Id of a particular dataset.
Headers
Authorization*
API key
Content-Type*
Application/jsonn
{
"data": {
"dataset_details": "dict"
},
"message": "string",
"status": 200
}
Upload
Used to upload data item for upgrading dataset.
POST
URL:{{base_url}}/api/{{version}}/dataset/:id/upload
Path Parameters
id*
String
Id of the dataset.
Headers
Authorization*
API key
Content-Type*
application/json
Request Body
file
form-data
In the case of FORM and DOC models, file must be a document with extension png, jpeg and pdf. In the case of NER model, file must be a json.
label_file
form-data
Json file. Used in FORM and DOC models.
ocr_file
form-data
Json file. Used in FORM and DOC models.
fields_json
form-data
Json file. Used in FORM models.
{
"data": {},
"message": "data uploaded to storage folder",
"status": 200
}
Update
Used to update dataset using uploaded data.
POST
URL:{{base_url}}/api/{{version}}/dataset/:id/upload
Path Parameters
id*
String
Id of the dataset.
Headers
Authorization*
API key
Content-Type*
application/json
{
"data": {
"dataset_id": "string"
},
"message": "dataset updated successfully!!!ready for upgrade",
"status": 200
}
Bulk Update
Used to update dataset using zip file which contains multiple data items.
POST
URL:{{base_url}}/api/{{version}}/dataset/:id/bulkupdate
Path Parameters
id*
String
Id of dataset.
Headers
Authorization*
API key
Content-Type*
application/json
{
"data": {
"dataset_id": "string"
},
"message": "uploaded zip file to staging folder.dataset is ready for upgrade",
"status": 200
}
Upgrade
Used to upgrade dataset which is already updated.
POST
URL:{{base_url}}/api/{{version}}/model/:id/dataset/upgrade
Path Parameters
id *
String
Id of dataset.
Headers
Authorization*
API key
Content-Type*
application/json
{
"data": {
"dataset_id": "string"
},
"message": "successfully upgraded",
"status": 200
}
Last updated