All URIs are relative to https://app.hotdata.dev
| Method | HTTP request | Description |
|---|---|---|
| refresh_handler | POST /v1/refresh | Refresh connection data |
RefreshResponse refresh_handler(refresh_request)
Refresh connection data
Refresh schema metadata or table data. The behavior depends on the request fields:
- Schema refresh (all): omit all fields — re-discovers tables for every connection.
- Schema refresh (single): set
connection_id— re-discovers tables for one connection. - Data refresh (single table): set
connection_id,schema_name,table_name, anddata: true. - Data refresh (connection): set
connection_idanddata: true— refreshes all cached tables. Setinclude_uncached: trueto also sync tables that haven't been cached yet.
import hotdata
from hotdata.models.refresh_request import RefreshRequest
from hotdata.models.refresh_response import RefreshResponse
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.RefreshApi(api_client)
refresh_request = hotdata.RefreshRequest() # RefreshRequest |
try:
# Refresh connection data
api_response = api_instance.refresh_handler(refresh_request)
print("The response of RefreshApi->refresh_handler:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RefreshApi->refresh_handler: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| refresh_request | RefreshRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Refresh completed | - |
| 400 | Invalid request | - |
| 404 | Connection not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]