curl --request POST \
--url https://statsigapi.net/console/v1/ingestion \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"dataset": "Metrics",
"column_mapping": {
"unit_id": "<string>",
"id_type": "<string>",
"dateid": "<string>",
"metric_name": "<string>",
"metric_value": "null",
"numerator": "null",
"denominator": "null"
},
"type": "redshift",
"source_name": "<string>",
"query": "<string>",
"use_delta_sharing": true,
"share": "<string>",
"schema": "<string>",
"table": "<string>",
"enabled": true
}'
{
"type": "databricks",
"dataset": "Metrics",
"source_name": "ingestion-1",
"query": "SELECT * FROM TABLE",
"column_mapping": {
"unit_id": "string",
"id_type": "string",
"dateid": "string",
"metric_name": "string",
"metric_value": "string",
"numerator": "string",
"denominator": "string"
},
"use_delta_sharing": false,
"share": "string",
"schema": "string",
"table": "string",
"enabled": false
}
Optional header to respect review settings for mutation endpoints.
Create Ingestion Success
The response is of type object
.
curl --request POST \
--url https://statsigapi.net/console/v1/ingestion \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"dataset": "Metrics",
"column_mapping": {
"unit_id": "<string>",
"id_type": "<string>",
"dateid": "<string>",
"metric_name": "<string>",
"metric_value": "null",
"numerator": "null",
"denominator": "null"
},
"type": "redshift",
"source_name": "<string>",
"query": "<string>",
"use_delta_sharing": true,
"share": "<string>",
"schema": "<string>",
"table": "<string>",
"enabled": true
}'
{
"type": "databricks",
"dataset": "Metrics",
"source_name": "ingestion-1",
"query": "SELECT * FROM TABLE",
"column_mapping": {
"unit_id": "string",
"id_type": "string",
"dateid": "string",
"metric_name": "string",
"metric_value": "string",
"numerator": "string",
"denominator": "string"
},
"use_delta_sharing": false,
"share": "string",
"schema": "string",
"table": "string",
"enabled": false
}