▦ Datasets
/api/dataset/create
an endpoint to create datasets.
['POST']
copy
POST method
curl -d '{"dataset_name": "sample dataset name", "dataset_description": "this is a sample dataset description", "dataset_size": "10-100MB", "dataset_format": "audio", "status": "private", "license_type": "Databoard Standard License"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/create -k
copy
successful response, 200
/api/dataset/delete
an endpoint to delete a dataset instance.
['POST']
copy
POST method
curl -d '{"dataset_id": "855986cc-b49b-4f54-a57e-b535da0d0f71"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/delete -k
copy
successful response, 200
/api/dataset/download
an endpoint to download datasets.
['POST']
copy
POST method
curl "{{session['base_url']}}/api/dataset/download?user_id={{session['user_id']}}&user_auth_token={{session['user_auth_token']}}&organization_id={{session['organization_id']}}&organization_auth_token={{session['organization_auth_token']}}&dataset_id={{session['dataset_id']}}" --output {{session['dataset_id']}}.zip -k
copy
successful response, 200
/api/dataset/edit
an endpoint to edit dataset profile information.
['POST']
copy
POST method
curl -d '{"dataset_id": "{{session['dataset_id']}}", "dataset_name": "new dataset name", "dataset_description": "new dataset description", "dataset_size": "10-100MB", "dataset_license_type": "Apache 2.0 License"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/edit -k
copy
successful response, 200
/api/dataset/read
an endpoint to get dataset profile information.
['POST']
copy
POST method
curl -d '{"dataset_id": "{{session['dataset_id']}}"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/read -k
copy
successful response, 200
/api/dataset/sample/create
an endpoint to upload data samples to datasets.
['POST']
copy
POST method
curl -X POST {{session['base_url']}}/api/dataset/sample/create -F [email protected] -F dataset_id={{session['dataset_id']}} -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' -k
copy
successful response, 201
/api/dataset/sample/delete
an endpoint to delete data samples from datasets.
['POST']
copy
POST method
curl -d '{"sample_id": "{{session['sample_id']}}"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/sample/delete -k
copy
successful response, 201
/api/dataset/sample/operation/create
an endpoint to add operations to dataset samples
['POST']
copy
POST method
curl -d '{"sample_id": "{{session['sample_id']}}", "operation_type": "[operation_type]"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/sample/operation/create -k
copy
successful response, 201
/api/dataset/sample/operation/delete
an endpoint to delete operations from dataset samples.
['POST']
copy
POST method
curl -d '{"sample_id": "{{session['sample_id']}}", "operation_id": "[operation_id]"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/sample/operation/delete -k
copy
successful response, 201
/api/dataset/sample/operation/read
an endpoint to read sample data operations.
['POST']
copy
POST method
curl -d '{"sample_id": "{{session['sample_id']}}"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/sample/operation/read -k
copy
successful response, 201
/api/dataset/sample/read
an endpoint to read data samples from datasets.
['POST']
copy
POST method
curl -d '{"sample_id": "{{session['sample_id']}}"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/sample/read -k
copy
successful response, 201
/api/dataset/starred/create
an endpoint to star datasets.
['POST']
copy
POST method
curl -d '{"dataset_id": "{{session['dataset_id']}}", "user_source": "[starred user_id]", "organization_source": "[starred organization_id]"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/starred/create -k
copy
successful response, 201
/api/dataset/starred/delete
an endpoint to unstar datasets.
['POST']
copy
POST method
curl -d '{"dataset_id": "{{session['dataset_id']}}", "user_source": "[starred user_id]", "organization_source": "[starred organization_id]"}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/dataset/starred/delete -k
copy
successful response, 201
/api/datasets/starred
an endpoint to get a user's or organization's starred datasets.
['POST']
copy
POST method
curl -d '{}' -H 'Content-Type: application/json' -H 'Authorization: (u){{session['user_id']}}:{{session['user_auth_token']}}:(o){{session['organization_id']}}:{{session['organization_auth_token']}}' {{session['base_url']}}/api/datasets/starred -k
copy
successful response, 201