# Create a new DWH Integration Note: the DWH Integration will not automatically create the TD database and tables. You need to create the TD database and tables before creating the DWH Integration. Endpoint: POST /v1/dwh/ Version: 1.0.0 Security: apiKey ## Request fields (application/json): - `schedule_type` (string) Enum: "none", "daily", "hourly", "weekly", "monthly", "minutes_interval", "cron" - `schedule_option` (string) The schedule value for the schedule_type. For example, if schedule_type is daily, schedule_option should be a time string like . - `timezone` (string) The timezone of the schedule. For example, or . - `name` (string, required) - `basic_configs` (object, required) The basic configs of the DWH Integration. - `advanced_configs` (array, required) The DWH Integration advanced configs. The configs contain array of of table configs which combine with the basic configs will be used to create Connector Bulkload Session. - `advanced_configs.target_table` (string) The name of the TD table to import data into. - `advanced_configs.config` (object) The configuration which will merge with the basic_configs to form a complete Connector configuration for Bulkload job. Some of the config from the basic_configs can declare here to override the basic_configs. - `output_config` (object, required) Config for how data will be imported into TD. - `output_config.database` (string) The name of the TD database to import data into. The database must be created before the DWH Integration is created. - `output_config.mode` (string) Specify the import mode. The default value is . - `output_config.time_column` (string) The value of the column will be used as the TD timestamp column. - `filter_configs` (array) Config for how data will be filtered before importing into TD. See the connector filters for more info. - `filter_configs.type` (string) The type of the filter. - `filter_configs.from_column` (object) - `filter_configs.to_column` (object) ## Response 200 fields (application/json): - `schedule_type` (string) Enum: "none", "daily", "hourly", "weekly", "monthly", "minutes_interval", "cron" - `schedule_option` (string) The schedule value for the schedule_type. For example, if schedule_type is daily, schedule_option should be a time string like . - `timezone` (string) The timezone of the schedule. For example, or . - `id` (integer) - `name` (string) The name of the DWH Integration. - `user_id` (integer) The ID of the user who created the DWH Integration. - `account_id` (integer) The TD Account which the DWH Integration belongs to. - `workflow_project_id` (integer) - `workflow_project_name` (string) - `dwh_config_id` (integer) - `created_at` (string) - `updated_at` (string) ## Response 400 fields (application/json): - `error` (object) - `error.code` (integer) The HTTP status code - `error.title` (string) The error title - `error.message` (any) The error message - `error.detail` (object) Any extra infomation of the error ## Response 401 fields (application/json): - `error` (object) - `error.code` (integer) The HTTP status code - `error.title` (string) The error title - `error.message` (any) The error message - `error.detail` (object) Any extra infomation of the error ## Response 403 fields (application/json): - `error` (object) - `error.code` (integer) The HTTP status code - `error.title` (string) The error title - `error.message` (any) The error message - `error.detail` (object) Any extra infomation of the error ## Response 404 fields (application/json): - `error` (object) - `error.code` (integer) The HTTP status code - `error.title` (string) The error title - `error.message` (any) The error message - `error.detail` (object) Any extra infomation of the error ## Response 500 fields (application/json): - `error` (object) - `error.code` (integer) The HTTP status code - `error.title` (string) The error title - `error.message` (any) The error message - `error.detail` (object) Any extra infomation of the error