Presto API¶
This page documents Presto payloads for the datastore API: sample requests with placeholder values to replace with your own. For generic operations (get, list, update, delete, multi-schema bulk), see Datastore API.
Complete API Reference
For the full interactive API documentation with all request/response schemas, visit the API docs.
Each example includes endpoint details, sample payloads, and instructions on how to replace placeholder values with actual data relevant to your setup.
Creating a Datastore¶
This section provides a sample payload for creating a datastore. Replace the placeholder values with actual data relevant to your setup.
Endpoint (Post)¶
/api/datastores (post)
{
"name": "your_datastore_name",
"teams": ["Public"],
"database": "presto_database",
"schema": "presto_schema",
"enrichment_only": false,
"trigger_sync": true,
"connection": {
"name": "your_connection_name",
"type": "presto",
"host": "presto_host",
"port": 8080,
"username": "presto_username",
"password": "presto_password"
}
}
# Step 1: Create a Connection
qualytics connections create \
--type presto \
--name "your_connection_name" \
--host ${PRESTO_HOST} \
--port 8080 \
--username ${PRESTO_USER} \
--password ${PRESTO_PASSWORD}
# Step 2: Create a Source Datastore
qualytics datastores create \
--name "your_datastore_name" \
--connection-name "your_connection_name" \
--database your_catalog \
--schema default
Use SSL
The payloads above leave Use SSL at its default, so the connection is encrypted. To connect
to a coordinator that does not serve TLS, send ssl as "false" under the connection's
parameters:
Link an Enrichment Destination¶
Endpoint (Patch)¶
/api/datastores/{datastore-id}/enrichment/{enrichment-id} (patch)