Update Ingestion Source

Update Ingestion Source

patchhttps://statsigapi.net/console/v1/ingestion

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Body

application/json
datasetstringrequired
Allowed values:MetricsEventsExposuresexport_exposures
column_mappingobject
Show child attributes
unit_idstringrequired

The unique user identifier this metric is for. This might not necessarily be a user_id - it could be a custom_id of some kind. Make sure this is in the same format as your logged unit_ids.

id_typestringrequired

The id_type the unit_id represents. Must be valid id_type. Default Statsig types are user_id/stable_id, but you may have generated custom id_types. Make sure this matches (case sensitive) a customID in your project, or you won’t get experiment results.

dateidstringrequired

Date of the daily metric, ISO formatted (ex. 2021-02-17). We’ll load custom metrics to whatever date you use here.

metric_namestringrequired

String format. Not null. Length < 128 characters.

metric_valuestring

Numeric value for the metric. This OR both of numerator and denominator need to be provided.

Default:null
numeratorstring

Required for ratio metrics. If present along with a denominator in any record, the metric will be treated as ratio and only calculated for users with non-null denominators

Default:null
denominatorstring

Required for ratio metrics. If present along with a numerator in any record, the metric will be treated as ratio and only calculated for users with non-null numerators.

Default:null
event_namestring

Name of the event. String under 128 characters, using ‘_’ for spaces.

timestampstring

Unix timestamp in seconds of the event (ex. 1613584800)

idsobject
Default:{}
metadataobject
Default:{}
metadata_objectstring
Default:null
event_valuestring
Default:
experimentstring

Unique identifier for the experiment.

group_idstring

Unique identifier for the experiment groups.

typestringrequired
Allowed values:redshiftbigquery-v2snowflake-v2databricksazure-synapses3athenaadls
Other properties6
source_namestring
querystring
sharestring
schemastring
tablestring
enabledboolean

Response

application/json
200· Update Ingestion Success
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
idstringrequired
typestringrequired
enabledbooleanrequired
dataobjectrequired

Was this helpful?