All URIs are relative to https://app.hotdata.dev
| Method | HTTP request | Description |
|---|---|---|
| create_dataset | POST /v1/datasets | Create dataset |
| delete_dataset | DELETE /v1/datasets/{id} | Delete dataset |
| get_dataset | GET /v1/datasets/{id} | Get dataset |
| list_datasets | GET /v1/datasets | List datasets |
| update_dataset | PUT /v1/datasets/{id} | Update dataset |
CreateDatasetResponse create_dataset(create_dataset_request)
Create dataset
Create a new dataset from an uploaded file or inline data. The dataset becomes a queryable table under the datasets schema (e.g., SELECT * FROM datasets.my_table). Supports CSV, JSON, and Parquet formats. Optionally specify explicit column types.
import hotdata
from hotdata.models.create_dataset_request import CreateDatasetRequest
from hotdata.models.create_dataset_response import CreateDatasetResponse
from hotdata.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.hotdata.dev
# See configuration.py for a list of all supported configuration parameters.
configuration = hotdata.Configuration(
host = "https://app.hotdata.dev"
)
# Enter a context with an instance of the API client
with hotdata.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hotdata.DatasetsApi(api_client)
create_dataset_request = hotdata.CreateDatasetRequest() # CreateDatasetRequest |
try:
# Create dataset
api_response = api_instance.create_dataset(create_dataset_request)
print("The response of DatasetsApi->create_dataset:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DatasetsApi->create_dataset: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| create_dataset_request | CreateDatasetRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Dataset created | - |
| 400 | Invalid request | - |
| 409 | Dataset already exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_dataset(id)
Delete dataset
import hotdata
from hotdata.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.hotdata.dev
# See configuration.py for a list of all supported configuration parameters.
configuration = hotdata.Configuration(
host = "https://app.hotdata.dev"
)
# Enter a context with an instance of the API client
with hotdata.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hotdata.DatasetsApi(api_client)
id = 'id_example' # str | Dataset ID
try:
# Delete dataset
api_instance.delete_dataset(id)
except Exception as e:
print("Exception when calling DatasetsApi->delete_dataset: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | Dataset ID |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Dataset deleted | - |
| 404 | Dataset not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetDatasetResponse get_dataset(id)
Get dataset
import hotdata
from hotdata.models.get_dataset_response import GetDatasetResponse
from hotdata.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.hotdata.dev
# See configuration.py for a list of all supported configuration parameters.
configuration = hotdata.Configuration(
host = "https://app.hotdata.dev"
)
# Enter a context with an instance of the API client
with hotdata.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hotdata.DatasetsApi(api_client)
id = 'id_example' # str | Dataset ID
try:
# Get dataset
api_response = api_instance.get_dataset(id)
print("The response of DatasetsApi->get_dataset:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DatasetsApi->get_dataset: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | Dataset ID |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Dataset details | - |
| 404 | Dataset not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListDatasetsResponse list_datasets(limit=limit, offset=offset)
List datasets
import hotdata
from hotdata.models.list_datasets_response import ListDatasetsResponse
from hotdata.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.hotdata.dev
# See configuration.py for a list of all supported configuration parameters.
configuration = hotdata.Configuration(
host = "https://app.hotdata.dev"
)
# Enter a context with an instance of the API client
with hotdata.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hotdata.DatasetsApi(api_client)
limit = 56 # int | Maximum number of datasets (default: 100, max: 1000) (optional)
offset = 56 # int | Pagination offset (default: 0) (optional)
try:
# List datasets
api_response = api_instance.list_datasets(limit=limit, offset=offset)
print("The response of DatasetsApi->list_datasets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DatasetsApi->list_datasets: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int | Maximum number of datasets (default: 100, max: 1000) | [optional] |
| offset | int | Pagination offset (default: 0) | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of datasets | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateDatasetResponse update_dataset(id, update_dataset_request)
Update dataset
import hotdata
from hotdata.models.update_dataset_request import UpdateDatasetRequest
from hotdata.models.update_dataset_response import UpdateDatasetResponse
from hotdata.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://app.hotdata.dev
# See configuration.py for a list of all supported configuration parameters.
configuration = hotdata.Configuration(
host = "https://app.hotdata.dev"
)
# Enter a context with an instance of the API client
with hotdata.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hotdata.DatasetsApi(api_client)
id = 'id_example' # str | Dataset ID
update_dataset_request = hotdata.UpdateDatasetRequest() # UpdateDatasetRequest |
try:
# Update dataset
api_response = api_instance.update_dataset(id, update_dataset_request)
print("The response of DatasetsApi->update_dataset:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DatasetsApi->update_dataset: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | Dataset ID | |
| update_dataset_request | UpdateDatasetRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Dataset updated | - |
| 404 | Dataset not found | - |
| 409 | Conflict | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]