# Dremio Dremio API

Source: https://userguide.qualytics.io/source-datastore/datastore/jdbc/dremio/how-tos/api/

This page documents Dremio 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](https://userguide.qualytics.io/source-datastore/datastore/api/).

> **Tip: Complete API Reference**
>
> For the full interactive API documentation with all request/response schemas, visit the [API docs](https://userguide.qualytics.io/api/docs).

> **Note: Permissions**
>
> Creating a datastore requires the **Manager** role, plus the **Editor** team permission on at least one of the assigned teams (the **Public** team when `teams` is left out). Admins are exempt.

> **Warning: Where each field goes**
>
> **Project ID**, **SSL Connection**, and the authentication **Type** are sent inside
> `connection.parameters`, not at the top level of `connection`. The credential itself goes in
> `connection.password`: the personal access token when `authentication_type` is `PAT`, or the
> account password together with `connection.username` when it is `BASIC`. Dremio has no
> `database` field, so only `schema` is sent.

## Creating a Source Datastore

This section provides sample payloads for creating a Dremio datastore. Replace the placeholder values with actual data relevant to your setup.

**Endpoint (Post)**: `/api/datastores (post)`

**Tab: Create a Source Datastore with a new Connection**

```json
{
    "name": "your_datastore_name",
    "teams": ["Public"],
    "schema": "dremio_schema",
    "enrichment_only": false,
    "trigger_sync": true,
    "connection": {
        "name": "your_connection_name",
        "type": "dremio",
        "host": "sql.dremio.cloud",
        "port": 443,
        "password": "your_personal_access_token",
        "parameters": {
            "project_id": "7c4d9f21-3b8e-4a6c-9d51-2f8b6e04a1c3",
            "ssl": true,
            "authentication_type": "PAT"
        }
    }
}
```

**Tab: Create a Source Datastore with an Existing Connection**

```json
{
    "name": "your_datastore_name",
    "teams": ["Public"],
    "schema": "dremio_schema",
    "enrichment_only": false,
    "trigger_sync": true,
    "connection_id": 123
}
```

**Tab: Create a Source Datastore using the CLI**

```bash
# Step 1: Create a Connection
qualytics connections create \
    --type dremio \
    --name "your_connection_name" \
    --host sql.dremio.cloud \
    --port 443 \
    --username ${DREMIO_USER} \
    --password ${DREMIO_PASSWORD}

# Step 2: Create a Source Datastore
qualytics datastores create \
    --name "your_datastore_name" \
    --connection-name "your_connection_name" \
    --schema your_schema
```

*Last updated: November 16, 2026.*
