createEnvironment

Creates an Environment and returns the newly created Environment (or an error if creating the Environment fails).

Arguments

input
CreateEnvironmentInput
required

Returns

Non-null
EnvironmentResponse

modifyEnvironment

Modifies an Environment with the provided fields. If any of the optional fields are omitted, those properties will be unchanged on the Environment.

Arguments

input
ModifyEnvironmentInput
required

Returns

Non-null
EnvironmentResponse

deleteEnvironment

Deletes a Environment by ID and returns its ID if the Environment was deleted successfully.

Arguments

id
ID
required

createDataPoolAccessPolicy

Creates a Data Pool Access Policy for the specified Data Pool.

Arguments

input
CreateDataPoolAccessPolicyInput
required

Returns

Non-null
DataPoolAccessPolicyResponse

modifyDataPoolAccessPolicy

Modifies a Data Pool Access Policy with the provided unique name, description, columns and rows. If any of the optional arguments are omitted, those properties will be unchanged on the Data Pool Access Policy.

Arguments

input
ModifyDataPoolAccessPolicyInput
required

Returns

Non-null
DataPoolAccessPolicyResponse

deleteDataPoolAccessPolicy

Deletes a Data Pool Access Policy by ID and returns its ID if the Data Pool Access Policy was deleted successfully.

Arguments

id
ID
required

assignDataPoolAccessPolicyToApplication

Assign a Data Pool Access Policy to an Application.

The Data Pool Access Policy will restrict the Data Pool rows and columns that the Application can query. If the Data Pool has accessControlEnabled set to true, the Application must have a Data Pool Access Policy assigned in order to query the Data Pool.

An Application can have at most one Data Pool Access Policy assigned for a given Data Pool. If an Application already has a Data Pool Access Policy for a given Data Pool, and you call this mutation with another Data Pool Access Policy for the same Data Pool, the Application’s Data Pool Access Policy will be replaced.

Arguments

dataPoolAccessPolicy
ID
required
application
ID
required

unAssignDataPoolAccessPolicyFromApplication

Unassign a Data Pool Access Policy from an Application.

Once unassigned, whether the Application will be able to query the Data Pool is controlled by the Data Pool’s accessControlEnabled property. If accessControlEnabled is true, the Application will no longer be able to query the Data Pool. If accessControlEnabled is false, the Application will be able to query all data in the Data Pool, unrestricted.

Arguments

dataPoolAccessPolicy
ID
required
application
ID
required

createApplication

Creates a new Application and returns the newly created Application (or an error message if creating the Application fails).

Required scopes:

  • APPLICATION_ADMIN
mutation {
  createApplication(
    input: {
      uniqueName: "example_sample_application"
      description: "My dashboard app"
      scopes: [DATA_POOL_QUERY]
      propeller: P1_X_SMALL
    }
  ) {
    ... on ApplicationResponse {
      application {
        id
        uniqueName
      }
    }
    ... on FailureResponse {
      error {
        code
        message
      }
    }
  }
}

Arguments

input
createApplicationInput
required

Returns

Nullable
ApplicationOrFailureResponse

modifyApplication

Modifies an Application with the provided unique name, description, Propeller, and scopes. If any of the optional arguments are omitted, those properties will be unchanged on the Application.

Arguments

input
modifyApplicationInput
required

Returns

Nullable
ApplicationOrFailureResponse

deleteApplication

Deletes an Application by ID and returns its ID if the Application was deleted successfully.

Arguments

id
ID
required

deleteApplicationByName

Deletes an Application by unique name and returns its ID if the Application was deleted successfully.

Arguments

uniqueName
String
required

createSnowflakeDataSource

Creates a new Data Source from the given Snowflake database using the specified Snowflake account, warehouse, schema, username, and role.

Returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
createSnowflakeDataSourceInput
required

Returns

Nullable
DataSourceOrFailureResponse

modifySnowflakeDataSource

Modifies a Data Source with the provided unique name, description, and connection settings. If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
modifySnowflakeDataSourceInput
required

Returns

Nullable
DataSourceOrFailureResponse

reconnectDataSource

Attempts to reconnect a Data Source. The mutation then returns the Data Source object.

Arguments

input
idOrUniqueName
required

Returns

Nullable
DataSource

introspectTables

Introspects the tables in a Data Source.

Returns the tables along with when they were last cached from the Data Source.

Arguments

input
idOrUniqueName
required

Returns

Nullable
TableIntrospection

testDataSource

Tests that Propel can actually connect to the data warehouse. Updates the status.

Arguments

input
idOrUniqueName
required

Returns

Nullable
DataSourceOrFailureResponse

deleteDataSource

Deletes a Data Source by ID and returns its ID if the Data Source was deleted successfully.

Arguments

id
ID
required

deleteDataSourceByName

Deletes a Data Source by unique name and returns its ID if the Data Source was deleted successfully.

Arguments

uniqueName
String
required

createDataPoolV2

Creates a new Data Pool.

Returns the newly created Data Pool or an error message if it fails.

mutation {
  createDataPoolV2(input: {
    dataSource: "DSOXXXXX"
    table: "tacosoft_sales_analytics"
    timestamp: { columnName: "timestamp" }
    columns: [
      {
        columnName: "timestamp",
        type: TIMESTAMP,
        isNullable: true
      },
      {
        columnName: "order_id",
        type: STRING,
        isNullable: true
      },
      {
        columnName: "taco_name",
        type: STRING,
        isNullable: true
      },
      {
        columnName: "toppings",
        type: JSON,
        isNullable: true
      },
      {
        columnName: "quantity",
        type: INT32,
        isNullable: true
      },
      {
        columnName: "taco_unit_price",
        type: INT32,
        isNullable: true
      },
      {
        columnName: "taco_total_price",
        type: INT32,
        isNullable: true
      }
    ]
  }) {
  dataPool {
    id
    uniqueName
    tableSettings {
      orderBy
      engine {
        ... on MergeTreeTableEngine {
          type
        }
        ... on ReplacingMergeTreeTableEngine {
          type
          ver
        }
        ... on SummingMergeTreeTableEngine {
          type
          columns
        }
        ... on AggregatingMergeTreeTableEngine {
          type
        }
        ... on PostgreSqlTableEngine {
          type
        }
      }
    }
  }
}
}

Arguments

input
CreateDataPoolInputV2
required

Returns

Nullable
DataPoolResponse

modifyDataPool

Modifies a Data Pool with the provided unique name, description, and data retention time. If any of the optional arguments are omitted, those properties will be unchanged on the Data Pool.

Arguments

input
modifyDataPoolInput
required

Returns

Nullable
DataPoolOrFailureResponse

retryDataPoolSetup

Retries to set up the Data Pool identified by the given ID.

Arguments

id
ID
required

Returns

Nullable
DataPool

retryDataPoolSetupByName

Retries to set up the Data Pool identified by the given unique name.

Arguments

uniqueName
String
required

Returns

Nullable
DataPool

inspectDataPoolSchema

Extracts the schema from the table and updates the schema object.

Arguments

input
idOrUniqueName
required

Returns

Nullable
DataPoolOrFailureResponse

testDataPool

Tests that Propel has access to the Data Pool’s table in its corresponding Data Source and will be able to Sync data. Updates the status.

Arguments

input
idOrUniqueName
required

Returns

Nullable
DataPoolOrFailureResponse

deleteDataPool

Deletes a Data Pool by ID and returns its ID if the Data Pool was deleted successfully.

Arguments

id
ID
required

deleteDataPoolByName

Deletes a Data Pool by unique name and returns its ID if the Data Pool was deleted successfully.

Arguments

uniqueName
String
required

disableSyncing

Disables syncing of a Data Pool.

Arguments

id
ID
required

Returns

Nullable
DataPool

enableSyncing

Re-enables syncing of a Data Pool.

Arguments

id
ID
required

Returns

Nullable
DataPool

createCountMetric

Creates a new Count Metric from the given Data Pool and returns the newly created Metric (or an error message if creating the Metric fails).

Arguments

input
CreateCountMetricInput

Returns

Nullable
MetricResponse

createCountDistinctMetric

Creates a new Count Distinct Metric from the given Data Pool and returns the newly created Metric (or an error message if creating the Metric fails).

Arguments

input
CreateCountDistinctMetricInput

Returns

Nullable
MetricResponse

createSumMetric

Creates a new Sum Metric from the given Data Pool and returns the newly created Metric (or an error message if creating the Metric fails).

Arguments

input
CreateSumMetricInput

Returns

Nullable
MetricResponse

createAverageMetric

Creates a new Average Metric from the given Data Pool and returns the newly created Metric (or an error message if creating the Metric fails).

Arguments

input
CreateAverageMetricInput

Returns

Nullable
MetricResponse

createMinMetric

Creates a new Min Metric from the given Data Pool and returns the newly created Metric (or an error message if creating the Metric fails).

Arguments

input
CreateMinMetricInput

Returns

Nullable
MetricResponse

createMaxMetric

Creates a new Max Metric from the given Data Pool and returns the newly created Metric (or an error message if creating the Metric fails).

Arguments

input
CreateMaxMetricInput

Returns

Nullable
MetricResponse

createCustomMetric

Creates a new Custom Metric from the given Data Pool and returns the newly created Metric (or an error message if creating the Metric fails).

Arguments

input
CreateCustomMetricInput

Returns

Nullable
MetricResponse

modifyMetric

Modifies a Metric by ID with the provided unique name, description, and Dimensions. If any of the optional arguments are omitted, those properties will be unchanged on the Metric.

Arguments

input
ModifyMetricInput

Returns

Nullable
MetricResponse

migrateMetric

Migrates a Metric from one Data Pool to another.

Arguments

input
MigrateMetricInput
required

Returns

Nullable
Metric

deleteMetric

Deletes a Metric by ID and returns its ID if the Metric was deleted successfully.

Arguments

id
ID
required

deleteMetricByName

Deletes a Metric by unique name and returns its ID if the Metric was deleted successfully.

Arguments

uniqueName
String
required

createBooster

Creates a new Booster for the given Metric and returns the newly created Booster.

A Booster significantly improves the query performance for a Metric.

Arguments

input
CreateBoosterInput
required

Returns

Nullable
BoosterResponse

deleteBooster

Deletes a Booster by ID and then returns the same ID if the Booster was deleted successfully.

A Booster significantly improves the query performance for a Metric.

Arguments

id
ID
required

createDeletionJob

Schedules a new Deletion Job on the specified Data Pool.

Arguments

input
CreateDeletionJobInput
required

Returns

Non-null
DeletionJobResponse

createAddColumnToDataPoolJob

Schedules a new AddColumnToDataPoolJob on the specified Data Pool.

Arguments

input
CreateAddColumnToDataPoolJobInput
required

Returns

Non-null
AddColumnToDataPoolJobResponse

createUpdateDataPoolRecordsJob

Schedules a new UpdateDataPoolRecords Job on the specified Data Pool.

Arguments

input
CreateUpdateDataPoolRecordsJobInput
required

Returns

Non-null
UpdateDataPoolRecordsJobResponse

syncDataPool

Manually trigger a Sync for a Data Pool.

Arguments

dataPoolId
ID
required

Returns

Nullable
Sync

resyncDataPool

Manually trigger a re-Sync for a Data Pool.

Arguments

dataPoolId
ID
required

Returns

Nullable
Sync

createMaterializedView

Creates a new Materialized View. Returns the newly created Materialized View (or an error message if creating the Materialized View fails).

Arguments

input
CreateMaterializedViewInput
required

Returns

Non-null
MaterializedViewResponse

modifyMaterializedView

Modifies a Materialized View. If any of the optional arguments are omitted, those properties will be unchanged on the Materialized View.

Arguments

input
ModifyMaterializedViewInput
required

Returns

Non-null
MaterializedViewResponse

deleteMaterializedView

Deletes a Materialized View and returns its ID if the Materialized View was deleted successfully. Note that deleting a Materialized View does not delete its target Data Pool. If you want to delete its target Data Pool, you must use the deleteDataPool mutation.

Arguments

id
ID
required

createAmazonDataFirehoseDataSource

Creates a new Amazon Data Firehose Data Source from the given settings.

Returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
CreateAmazonDataFirehoseDataSourceInput
required

Returns

Non-null
DataSourceResponse

modifyAmazonDataFirehoseDataSource

Modifies the Data Source by the ID or unique name provided with the given unique name, description, and connection settings.

If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
ModifyAmazonDataFirehoseDataSourceInput
required

Returns

Non-null
DataSourceResponse

createAmazonDynamoDBDataSource

Creates a new Amazon DynamoDB Data Source from the given settings.

Returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
CreateAmazonDynamoDBDataSourceInput
required

Returns

Non-null
DataSourceResponse

modifyAmazonDynamoDBDataSource

Modifies the Data Source by the ID or unique name provided with the given unique name, description, and connection settings.

If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
ModifyAmazonDynamoDBDataSourceInput
required

Returns

Non-null
DataSourceResponse

createClickHouseDataSource

This mutation creates a new ClickHouse Data Source.

The mutation returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
CreateClickHouseDataSourceInput
required

Returns

Non-null
DataSourceResponse

modifyClickHouseDataSource

This mutation selects a Data Source by its ID or unique name and modifies it to have the given unique name, description, and connection settings.

If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
ModifyClickHouseDataSourceInput
required

Returns

Non-null
DataSourceResponse

createHttpDataSource

Creates a new HTTP Data Source from the given settings.

Returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
CreateHttpDataSourceInput
required

Returns

Non-null
DataSourceResponse

modifyHttpDataSource

This mutation selects a Data Source by its ID or unique name and modifies it to have the given unique name, description, and connection settings.

If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
ModifyHttpDataSourceInput
required

Returns

Non-null
DataSourceResponse

createKafkaDataSource

This mutation creates a new Kafka Data Source.

The mutation returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
CreateKafkaDataSourceInput
required

Returns

Non-null
DataSourceResponse

modifyKafkaDataSource

This mutation selects a Data Source by its ID or unique name and modifies it to have the given unique name, description, and connection settings.

If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
ModifyKafkaDataSourceInput
required

Returns

Non-null
DataSourceResponse

createPostgreSqlDataSource

Creates a new PostgreSQL Data Source.

Returns the newly created Data Source (or an error message if creating the Data Source fails).

Example:

mutation {
  createPostgreSqlDataSource(input: {
    uniqueName: "example_postgresql_data_source"
    description: "My PostgreSQL Data Source"
    connectionSettings: {
      database: "example_database"
      schema: "public"
      host: "postgresql.example.com"
      port: 5432
      user: "user"
      password: "password"
    }
  }) {
    dataSource {
      id
      uniqueName
    }
  }
}

Replace the placeholder values with your actual configuration.

Arguments

input
CreatePostgreSqlDataSourceInput
required

Returns

Non-null
DataSourceResponse

modifyPostgreSqlDataSource

Selects a Data Source by its ID or unique name and modifies it to have the given unique name, description, and connection settings.

If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
ModifyPostgreSqlDataSourceInput
required

Returns

Non-null
DataSourceResponse

createS3DataSource

Creates a new Amazon S3 Data Source pointed at the specified Amazon S3 bucket.

Returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
CreateS3DataSourceInput
required

Returns

Non-null
DataSourceResponse

modifyS3DataSource

This mutation selects a Data Source by its ID or unique name and modifies it to have the given unique name, description, and connection settings.

If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
ModifyS3DataSourceInput
required

Returns

Non-null
DataSourceResponse

createTwilioSegmentDataSource

Creates a new Twilio Segment Data Source from the given settings.

Returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
CreateTwilioSegmentDataSourceInput
required

Returns

Non-null
DataSourceResponse

modifyTwilioSegmentDataSource

Modifies the Data Source by the ID or unique name provided with the given unique name, description, and connection settings.

If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
ModifyTwilioSegmentDataSourceInput
required

Returns

Non-null
DataSourceResponse

createWebhookDataSource

Creates a new Webhook Data Source from the given settings.

Returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
CreateWebhookDataSourceInput
required

Returns

Non-null
DataSourceResponse

modifyWebhookDataSource

Modifies the Data Source by the ID or unique name provided with the given unique name, description, and connection settings.

If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
ModifyWebhookDataSourceInput
required

Returns

Non-null
DataSourceResponse