Data Export destinations

Complete warehouse destination setup

POST
/api/v2/destinations/projects/{projKey}/environments/{envKey}/kinds/{kind}/complete-setup

Complete the setup of a warehouse destination by providing the Snowflake host address and the public keys from the /setup response. The custom names are read from the stored configuration.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projKey*string

The project key

Formatstring
envKey*string

The environment key

Formatstring
kind*string

The destination kind (snowflake-v2, bigquery, clickhouse, redshift, databricks)

Formatstring

Request Body

application/json

publicKey?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v2/destinations/projects/string/environments/string/kinds/string/complete-setup" \  -H "Content-Type: application/json" \  -d '{}'
{  "_id": "610addeadbeefaa86ec9a7d4",  "_links": {    "parent": {      "href": "/api/v2/destinations",      "type": "application/json"    },    "self": {      "href": "/api/v2/destinations/my-project/my-environment/610addeadbeefaa86ec9a7d4",      "type": "application/json"    }  },  "name": "example-destination",  "kind": "google-pubsub",  "version": 1,  "config": "{\"project\":\"test-prod\",\"topic\":\"ld-pubsub-test-192301\"}",  "on": true,  "createdAt": "1628001602644",  "maintainerId": "569f183514f4432160000007",  "_access": {    "denied": [      {        "action": "string",        "reason": {          "resources": [            "proj/*:env/*;qa_*:/flag/*"          ],          "notResources": [            "string"          ],          "actions": [            "*"          ],          "notActions": [            "string"          ],          "effect": "allow",          "role_name": "string"        }      }    ],    "allowed": [      {        "action": "string",        "reason": {          "resources": [            "proj/*:env/*;qa_*:/flag/*"          ],          "notResources": [            "string"          ],          "actions": [            "*"          ],          "notActions": [            "string"          ],          "effect": "allow",          "role_name": "string"        }      }    ]  },  "completedArtifacts": {    "sqlSetupScript": "string",    "s3BucketName": "string"  }}