Datastreams
63 operations in the Adverity Connect API. Replace {{INSTANCE}} and {{KEY}} in the examples with your instance and API key. How authentication works.
List columns
GET/api/columns/
API key permissionDatastream: Read-onlydatastream:read
Query parameters
datastream_idintegerorderingstringWhich field to use when ordering the results.
pageintegerA page number within the paginated result set.
page_sizeintegerNumber of results to return per page.
removedboolean
Responses
200OKapplication/json
Response schema
object PaginatedDatastreamColumnInfoList
countintegerrequiredExample
123nextstring · urinullableExample
"http://api.example.org/accounts/?page=4"previousstring · urinullableExample
"http://api.example.org/accounts/?page=2"resultsarray of objectrequiredItems · DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
Update columns (PATCH /api/columns/)
PATCH/api/columns/
API key permissionDatastream: Writedatastream:write
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PatchedDatastreamColumnInfo
datatypestringOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequiredusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
set_defaultbooleanwrite-onlyDefault
falsereset_defaultbooleanwrite-onlyDefault
falseunlock_typebooleanwrite-onlyDefault
false
Responses
200OKapplication/json
Response schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
Get columns
GET/api/columns/{id}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this datastream column info.
Responses
200OKapplication/json
Response schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
Update columns (PATCH /api/columns/{id}/)
PATCH/api/columns/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this datastream column info.
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PatchedDatastreamColumnInfo
datatypestringOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequiredusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
set_defaultbooleanwrite-onlyDefault
falsereset_defaultbooleanwrite-onlyDefault
falseunlock_typebooleanwrite-onlyDefault
false
Responses
200OKapplication/json
Response schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
List datastream types
GET/api/datastream-types/
API key permissionDatastream: Read-onlydatastream:read
Query parameters
pageintegerA page number within the paginated result set.
page_sizeintegerNumber of results to return per page.
searchstringA search term.
Responses
200OKapplication/json
Response schema
object PaginatedDatastreamTypeList
countintegerrequiredExample
123nextstring · urinullableExample
"http://api.example.org/accounts/?page=4"previousstring · urinullableExample
"http://api.example.org/accounts/?page=2"resultsarray of objectrequiredItems · DatastreamType
idintegerrequiredread-onlynamestringrequiredread-onlyslugstringrequiredread-onlycanonical_namestringrequiredread-onlyapi_detailsobjectrequiredread-onlyurlstring · urirequiredread-onlycategoriesarray of stringrequiredread-onlykeywordsarray of stringrequiredread-onlyis_deprecatedbooleanrequiredread-onlylogo_urlstringrequiredread-onlycreate_urlstringrequiredread-onlydatastreamsstring · urirequiredread-onlyconnection_typesarray of stringrequiredread-onlypresetsarray of objectrequiredread-onlyItems · DatastreamPreset
idintegerrequiredread-onlystackintegernullablecontent_typeintegerrequirednamestringrequiredMax length
200descriptionstringsystem_managedbooleanTrue when the preset is system-managed and global; false when it belongs to the workspace given in
stack.stackmay be null for any preset, whether system-managed or not.serialized_dataanytransformationsanycreatorintegerrequiredread-onlynullablecreatedstring · date-timerequiredread-onlyupdatedstring · date-timerequiredread-only
Get datastream types
GET/api/datastream-types/{id}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this content type.
Responses
200OKapplication/json
Response schema
object DatastreamType
idintegerrequiredread-onlynamestringrequiredread-onlyslugstringrequiredread-onlycanonical_namestringrequiredread-onlyapi_detailsobjectrequiredread-onlyurlstring · urirequiredread-onlycategoriesarray of stringrequiredread-onlykeywordsarray of stringrequiredread-onlyis_deprecatedbooleanrequiredread-onlylogo_urlstringrequiredread-onlycreate_urlstringrequiredread-onlydatastreamsstring · urirequiredread-onlyconnection_typesarray of stringrequiredread-onlypresetsarray of objectrequiredread-onlyItems · DatastreamPreset
idintegerrequiredread-onlystackintegernullablecontent_typeintegerrequirednamestringrequiredMax length
200descriptionstringsystem_managedbooleanTrue when the preset is system-managed and global; false when it belongs to the workspace given in
stack.stackmay be null for any preset, whether system-managed or not.serialized_dataanytransformationsanycreatorintegerrequiredread-onlynullablecreatedstring · date-timerequiredread-onlyupdatedstring · date-timerequiredread-only
List datastream types datastreams
GET/api/datastream-types/{parent_lookup_type_id}/datastreams/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
parent_lookup_type_idstringrequiredThe datastream type: its integer id or its canonical_name, as listed by GET /api/datastream-types/.
Query parameters
autharray of integerReturn only datastreams using the given authorization(s). Accepts a comma-separated list of IDs.
creatorstringidsarray of integerMultiple values may be separated by commas.
namestringorderingstringWhich field to use when ordering the results.
pageintegerA page number within the paginated result set.
page_sizeintegerNumber of results to return per page.
scheduled_deletionbooleantrue returns only datastreams scheduled for deletion; false returns only those that are not. Omit to return both.
stack_idintegerWhich workspace the datastream belongs to.
transformerintegerReturn only datastreams that have the given TransformerConfig assigned.
Responses
200OKapplication/json
Response schema
object PaginatedPolymorphicDatastreamBaseResponseList
countintegerrequiredExample
123nextstring · urinullableExample
"http://api.example.org/accounts/?page=4"previousstring · urinullableExample
"http://api.example.org/accounts/?page=2"resultsarray of objectrequiredItems · PolymorphicDatastreamBaseResponse
idintegerrequiredread-onlyassigned_destinationsarray of objectReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingcreatorstringrequiredread-onlynullableapp_labelstringrequiredread-onlydatastream_type_idintegerrequiredread-onlyabsolute_urlstringrequiredread-onlyschedulesarray of objectItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
stackobjectrequiredread-onlyAttributes · PolymorphicDatastreamStack
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
supports_extended_intervalsbooleanrequiredread-onlylast_fetchstring · date-timerequiredread-onlynullableactive_destinationobjectrequiredread-onlynullableDescribes the destination of the datastream's workspace. Null if the workspace has no destination.
passive_destinationsone ofrequiredread-onlyOnce passive destinations are set up for the datastream, an object with
destinations(for example Google Data Studio and Tableau) andtimerange. Before that, the host-less path of the datastream's passive-destinations route. A GET there sets them up on first use and returns the same object.Attributes
object
string
frequencystringrequiredread-only"Disabled" if the datastream has no schedule or is not scheduled (
enabledis false), even if schedules exist. Otherwise the label of the default schedule, the first by type and interval, such as "Daily", "Hourly" or "Every 3 days".time_range_maxintegerrequiredread-onlynullableThe maximum time range in days. Many types derive it from the datastream's own settings, such as the report type. Null if nothing limits the datastream with its current settings.
time_range_availablearray of string · date-timerequiredread-onlynullabletransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
createdstring · date-timerequiredread-onlyupdatedstring · date-timerequiredread-onlyuuidstring · uuidrequiredread-onlyslugstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128authintegernullableRequired by most datastream types. Send OPTIONS to the datastreams URL of a type:
actions.POST.auth.requiredtells whether the type needs a connection.actionsis only present if you may create datastreams there.change_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyhas_schema_mappingbooleanrequiredread-onlyhas_schema_mapping_dimensionbooleanrequiredread-onlyissues_urlstringrequiredread-onlynext_runstring · date-timerequiredread-onlynullableoverview_urlstringrequiredread-onlystack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
supports_passive_destinationsbooleanrequiredread-only
Create datastream types datastreams
POST/api/datastream-types/{parent_lookup_type_id}/datastreams/
API key permissionDatastream: Writedatastream:write
Path parameters
parent_lookup_type_idstringrequiredThe datastream type: its integer id or its canonical_name, as listed by GET /api/datastream-types/.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PolymorphicDatastreamBase
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingschedulesarray of objectItems · FetchSchedule
cron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
stackintegertransformer_idsarray of integerwrite-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128authintegernullableRequired by most datastream types. Send OPTIONS to the datastreams URL of a type:
actions.POST.auth.requiredtells whether the type needs a connection.actionsis only present if you may create datastreams there.transformersarray of integer
Responses
201Createdapplication/json
Response schema
object PolymorphicDatastreamBaseResponse
idintegerrequiredread-onlyassigned_destinationsarray of objectReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingcreatorstringrequiredread-onlynullableapp_labelstringrequiredread-onlydatastream_type_idintegerrequiredread-onlyabsolute_urlstringrequiredread-onlyschedulesarray of objectItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
stackobjectrequiredread-onlyAttributes · PolymorphicDatastreamStack
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
supports_extended_intervalsbooleanrequiredread-onlylast_fetchstring · date-timerequiredread-onlynullableactive_destinationobjectrequiredread-onlynullableDescribes the destination of the datastream's workspace. Null if the workspace has no destination.
passive_destinationsone ofrequiredread-onlyOnce passive destinations are set up for the datastream, an object with
destinations(for example Google Data Studio and Tableau) andtimerange. Before that, the host-less path of the datastream's passive-destinations route. A GET there sets them up on first use and returns the same object.Attributes
object
string
frequencystringrequiredread-only"Disabled" if the datastream has no schedule or is not scheduled (
enabledis false), even if schedules exist. Otherwise the label of the default schedule, the first by type and interval, such as "Daily", "Hourly" or "Every 3 days".time_range_maxintegerrequiredread-onlynullableThe maximum time range in days. Many types derive it from the datastream's own settings, such as the report type. Null if nothing limits the datastream with its current settings.
time_range_availablearray of string · date-timerequiredread-onlynullabletransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
createdstring · date-timerequiredread-onlyupdatedstring · date-timerequiredread-onlyuuidstring · uuidrequiredread-onlyslugstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128authintegernullableRequired by most datastream types. Send OPTIONS to the datastreams URL of a type:
actions.POST.auth.requiredtells whether the type needs a connection.actionsis only present if you may create datastreams there.change_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyhas_schema_mappingbooleanrequiredread-onlyhas_schema_mapping_dimensionbooleanrequiredread-onlyissues_urlstringrequiredread-onlynext_runstring · date-timerequiredread-onlynullableoverview_urlstringrequiredread-onlystack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
supports_passive_destinationsbooleanrequiredread-only
Get datastream types datastreams
GET/api/datastream-types/{parent_lookup_type_id}/datastreams/{id}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredThe datastream id.
parent_lookup_type_idstringrequiredThe datastream type: its integer id or its canonical_name, as listed by GET /api/datastream-types/.
Query parameters
expandstringComma-separated related resources to inline in the response. Currently supports 'destinations', which adds the assigned_destinations array.
One of
destinations
Responses
200OKapplication/json
Response schema
object PolymorphicDatastreamBaseResponse
idintegerrequiredread-onlyassigned_destinationsarray of objectReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingcreatorstringrequiredread-onlynullableapp_labelstringrequiredread-onlydatastream_type_idintegerrequiredread-onlyabsolute_urlstringrequiredread-onlyschedulesarray of objectItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
stackobjectrequiredread-onlyAttributes · PolymorphicDatastreamStack
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
supports_extended_intervalsbooleanrequiredread-onlylast_fetchstring · date-timerequiredread-onlynullableactive_destinationobjectrequiredread-onlynullableDescribes the destination of the datastream's workspace. Null if the workspace has no destination.
passive_destinationsone ofrequiredread-onlyOnce passive destinations are set up for the datastream, an object with
destinations(for example Google Data Studio and Tableau) andtimerange. Before that, the host-less path of the datastream's passive-destinations route. A GET there sets them up on first use and returns the same object.Attributes
object
string
frequencystringrequiredread-only"Disabled" if the datastream has no schedule or is not scheduled (
enabledis false), even if schedules exist. Otherwise the label of the default schedule, the first by type and interval, such as "Daily", "Hourly" or "Every 3 days".time_range_maxintegerrequiredread-onlynullableThe maximum time range in days. Many types derive it from the datastream's own settings, such as the report type. Null if nothing limits the datastream with its current settings.
time_range_availablearray of string · date-timerequiredread-onlynullabletransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
createdstring · date-timerequiredread-onlyupdatedstring · date-timerequiredread-onlyuuidstring · uuidrequiredread-onlyslugstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128authintegernullableRequired by most datastream types. Send OPTIONS to the datastreams URL of a type:
actions.POST.auth.requiredtells whether the type needs a connection.actionsis only present if you may create datastreams there.change_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyhas_schema_mappingbooleanrequiredread-onlyhas_schema_mapping_dimensionbooleanrequiredread-onlyissues_urlstringrequiredread-onlynext_runstring · date-timerequiredread-onlynullableoverview_urlstringrequiredread-onlystack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
supports_passive_destinationsbooleanrequiredread-only
Replace datastream types datastreams
PUT/api/datastream-types/{parent_lookup_type_id}/datastreams/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredThe datastream id.
parent_lookup_type_idstringrequiredThe datastream type: its integer id or its canonical_name, as listed by GET /api/datastream-types/.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PolymorphicDatastreamBase
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingschedulesarray of objectItems · FetchSchedule
cron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
stackintegertransformer_idsarray of integerwrite-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128authintegernullableRequired by most datastream types. Send OPTIONS to the datastreams URL of a type:
actions.POST.auth.requiredtells whether the type needs a connection.actionsis only present if you may create datastreams there.transformersarray of integer
Responses
200OKapplication/json
Response schema
object PolymorphicDatastreamBaseResponse
idintegerrequiredread-onlyassigned_destinationsarray of objectReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingcreatorstringrequiredread-onlynullableapp_labelstringrequiredread-onlydatastream_type_idintegerrequiredread-onlyabsolute_urlstringrequiredread-onlyschedulesarray of objectItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
stackobjectrequiredread-onlyAttributes · PolymorphicDatastreamStack
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
supports_extended_intervalsbooleanrequiredread-onlylast_fetchstring · date-timerequiredread-onlynullableactive_destinationobjectrequiredread-onlynullableDescribes the destination of the datastream's workspace. Null if the workspace has no destination.
passive_destinationsone ofrequiredread-onlyOnce passive destinations are set up for the datastream, an object with
destinations(for example Google Data Studio and Tableau) andtimerange. Before that, the host-less path of the datastream's passive-destinations route. A GET there sets them up on first use and returns the same object.Attributes
object
string
frequencystringrequiredread-only"Disabled" if the datastream has no schedule or is not scheduled (
enabledis false), even if schedules exist. Otherwise the label of the default schedule, the first by type and interval, such as "Daily", "Hourly" or "Every 3 days".time_range_maxintegerrequiredread-onlynullableThe maximum time range in days. Many types derive it from the datastream's own settings, such as the report type. Null if nothing limits the datastream with its current settings.
time_range_availablearray of string · date-timerequiredread-onlynullabletransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
createdstring · date-timerequiredread-onlyupdatedstring · date-timerequiredread-onlyuuidstring · uuidrequiredread-onlyslugstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128authintegernullableRequired by most datastream types. Send OPTIONS to the datastreams URL of a type:
actions.POST.auth.requiredtells whether the type needs a connection.actionsis only present if you may create datastreams there.change_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyhas_schema_mappingbooleanrequiredread-onlyhas_schema_mapping_dimensionbooleanrequiredread-onlyissues_urlstringrequiredread-onlynext_runstring · date-timerequiredread-onlynullableoverview_urlstringrequiredread-onlystack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
supports_passive_destinationsbooleanrequiredread-only
Update datastream types datastreams
PATCH/api/datastream-types/{parent_lookup_type_id}/datastreams/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredThe datastream id.
parent_lookup_type_idstringrequiredThe datastream type: its integer id or its canonical_name, as listed by GET /api/datastream-types/.
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PatchedPolymorphicDatastreamBase
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingschedulesarray of objectItems · FetchSchedule
cron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
stackintegertransformer_idsarray of integerwrite-onlynamestringA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128authintegernullableRequired by most datastream types. Send OPTIONS to the datastreams URL of a type:
actions.POST.auth.requiredtells whether the type needs a connection.actionsis only present if you may create datastreams there.transformersarray of integer
Responses
200OKapplication/json
Response schema
object PolymorphicDatastreamBaseResponse
idintegerrequiredread-onlyassigned_destinationsarray of objectReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingcreatorstringrequiredread-onlynullableapp_labelstringrequiredread-onlydatastream_type_idintegerrequiredread-onlyabsolute_urlstringrequiredread-onlyschedulesarray of objectItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
stackobjectrequiredread-onlyAttributes · PolymorphicDatastreamStack
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
supports_extended_intervalsbooleanrequiredread-onlylast_fetchstring · date-timerequiredread-onlynullableactive_destinationobjectrequiredread-onlynullableDescribes the destination of the datastream's workspace. Null if the workspace has no destination.
passive_destinationsone ofrequiredread-onlyOnce passive destinations are set up for the datastream, an object with
destinations(for example Google Data Studio and Tableau) andtimerange. Before that, the host-less path of the datastream's passive-destinations route. A GET there sets them up on first use and returns the same object.Attributes
object
string
frequencystringrequiredread-only"Disabled" if the datastream has no schedule or is not scheduled (
enabledis false), even if schedules exist. Otherwise the label of the default schedule, the first by type and interval, such as "Daily", "Hourly" or "Every 3 days".time_range_maxintegerrequiredread-onlynullableThe maximum time range in days. Many types derive it from the datastream's own settings, such as the report type. Null if nothing limits the datastream with its current settings.
time_range_availablearray of string · date-timerequiredread-onlynullabletransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
createdstring · date-timerequiredread-onlyupdatedstring · date-timerequiredread-onlyuuidstring · uuidrequiredread-onlyslugstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128authintegernullableRequired by most datastream types. Send OPTIONS to the datastreams URL of a type:
actions.POST.auth.requiredtells whether the type needs a connection.actionsis only present if you may create datastreams there.change_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyhas_schema_mappingbooleanrequiredread-onlyhas_schema_mapping_dimensionbooleanrequiredread-onlyissues_urlstringrequiredread-onlynext_runstring · date-timerequiredread-onlynullableoverview_urlstringrequiredread-onlystack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
supports_passive_destinationsbooleanrequiredread-only
Delete datastream types datastreams
DELETE/api/datastream-types/{parent_lookup_type_id}/datastreams/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredThe datastream id.
parent_lookup_type_idstringrequiredThe datastream type: its integer id or its canonical_name, as listed by GET /api/datastream-types/.
Responses
204No response body
List datastream types datastreams columns
GET/api/datastream-types/{parent_lookup_type_id}/datastreams/{parent_lookup_datastream_id}/columns/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
parent_lookup_datastream_idstringrequiredThe datastream id. Not checked on this route. The
datastream_idquery parameter selects the listed columns, andidselects one column.parent_lookup_type_idstringrequiredThe datastream type: its integer id or its canonical_name, as listed by GET /api/datastream-types/. Not checked on this route. The
datastream_idquery parameter selects the listed columns, andidselects one column.
Query parameters
datastream_idintegerorderingstringWhich field to use when ordering the results.
pageintegerA page number within the paginated result set.
page_sizeintegerNumber of results to return per page.
removedboolean
Responses
200OKapplication/json
Response schema
object PaginatedDatastreamColumnInfoList
countintegerrequiredExample
123nextstring · urinullableExample
"http://api.example.org/accounts/?page=4"previousstring · urinullableExample
"http://api.example.org/accounts/?page=2"resultsarray of objectrequiredItems · DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
Get datastream types datastreams columns
GET/api/datastream-types/{parent_lookup_type_id}/datastreams/{parent_lookup_datastream_id}/columns/{id}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this datastream column info.
parent_lookup_datastream_idstringrequiredThe datastream id. Not checked on this route. The
datastream_idquery parameter selects the listed columns, andidselects one column.parent_lookup_type_idstringrequiredThe datastream type: its integer id or its canonical_name, as listed by GET /api/datastream-types/. Not checked on this route. The
datastream_idquery parameter selects the listed columns, andidselects one column.
Responses
200OKapplication/json
Response schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
Update datastream types datastreams columns
PATCH/api/datastream-types/{parent_lookup_type_id}/datastreams/{parent_lookup_datastream_id}/columns/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this datastream column info.
parent_lookup_datastream_idstringrequiredThe datastream id. Not checked on this route. The
datastream_idquery parameter selects the listed columns, andidselects one column.parent_lookup_type_idstringrequiredThe datastream type: its integer id or its canonical_name, as listed by GET /api/datastream-types/. Not checked on this route. The
datastream_idquery parameter selects the listed columns, andidselects one column.
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PatchedDatastreamColumnInfo
datatypestringOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequiredusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
set_defaultbooleanwrite-onlyDefault
falsereset_defaultbooleanwrite-onlyDefault
falseunlock_typebooleanwrite-onlyDefault
false
Responses
200OKapplication/json
Response schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
List datastreams (GET /api/datastreams/)
GET/api/datastreams/
API key permissionDatastream: Read-onlydatastream:read
Query parameters
autharray of integerReturn only datastreams using the given authorization(s). Accepts a comma-separated list of IDs.
creatorstringidsarray of integerMultiple values may be separated by commas.
namestringorderingstringWhich field to use when ordering the results.
pageintegerA page number within the paginated result set.
page_sizeintegerNumber of results to return per page.
scheduled_deletionbooleantrue returns only datastreams scheduled for deletion; false returns only those that are not. Omit to return both.
stack_idintegerWhich workspace the datastream belongs to.
transformerintegerReturn only datastreams that have the given TransformerConfig assigned.
Responses
200OKapplication/json
Response schema
object PaginatedAPIDatastreamBasicList
countintegerrequiredExample
123nextstring · urinullableExample
"http://api.example.org/accounts/?page=4"previousstring · urinullableExample
"http://api.example.org/accounts/?page=2"resultsarray of objectrequiredItems · APIDatastreamBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
stack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlyapp_labelstringrequiredread-onlyabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyenabledbooleanStreams that are not scheduled will not be fetched automatically.
next_runstring · date-timerequiredread-onlynullableurlstring · urirequiredread-onlydatastream_type_idintegerrequiredread-onlylogo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablecan_be_fetchedbooleanrequiredread-only
Get datastreams
GET/api/datastreams/{id}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Query parameters
expandstringComma-separated related resources to inline in the response. Currently supports 'destinations', which adds the assigned_destinations array.
One of
destinations
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Replace datastreams
PUT/api/datastreams/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object APIDatastreamFull
stack_idintegerrequiredwrite-onlyauthintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
transformer_idsarray of integerrequiredwrite-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingoverwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Update datastreams
PATCH/api/datastreams/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PatchedAPIDatastreamFull
stack_idintegerwrite-onlyauthintegernullableWhich authorization the datastream uses.
namestringA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
transformer_idsarray of integerwrite-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingoverwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Get datastreams columns (GET /api/datastreams/{id}/columns/)
GET/api/datastreams/{id}/columns/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Responses
200OKapplication/json
Response schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
Create datastreams columns
POST/api/datastreams/{id}/columns/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequiredusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
set_defaultbooleanwrite-onlyDefault
falsereset_defaultbooleanwrite-onlyDefault
falseunlock_typebooleanwrite-onlyDefault
false
Responses
200OKapplication/json
Response schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
Replace datastreams columns map
PUT/api/datastreams/{id}/columns/map/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object DatastreamMapping
schema_columnstringrequiredMax length
200source_columnstringrequiredMax length
200is_key_columnboolean
Responses
200OKapplication/json
Response schema
object DatastreamMapping
schema_columnstringrequiredMax length
200source_columnstringrequiredMax length
200is_key_columnboolean
Get datastreams columns (GET /api/datastreams/{id}/columns/{cid}/)
GET/api/datastreams/{id}/columns/{cid}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
cidstringrequiredPattern
^[0-9]+$idintegerrequiredA unique integer value identifying this Datastream.
Responses
200OKapplication/json
Response schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
Update datastreams columns
PATCH/api/datastreams/{id}/columns/{cid}/
API key permissionDatastream: Writedatastream:write
Path parameters
cidstringrequiredPattern
^[0-9]+$idintegerrequiredA unique integer value identifying this Datastream.
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PatchedDatastreamColumnInfo
datatypestringOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequiredusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
set_defaultbooleanwrite-onlyDefault
falsereset_defaultbooleanwrite-onlyDefault
falseunlock_typebooleanwrite-onlyDefault
false
Responses
200OKapplication/json
Response schema
object DatastreamColumnInfo
datatypestringrequiredOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampidintegerrequiredread-onlychange_urlstringrequiredread-onlycreatedstring · date-timerequiredread-onlyis_key_columnbooleanIf checked, this column will be used to consolidate multiple files.
confirmed_typebooleanIf checked the type will not be changed by the tracking service.
namestringrequiredMax length
200typeinteger1- String2- Long3- Float4- Date5- DateTime6- Boolean7- Percentage9- Currency8- JSON10- Formula11- Duration13- Timestamp
One of
123456798101113· Min0· Max32767removedbooleantarget_columnobjectnullableAttributes
ReadOnlySchemaColumn
idintegerrequirednamestringrequiredread-onlyMax length
200typestringrequiredread-onlyOne of
StringLongFloatDateDateTimeBooleanPercentageCurrencyJSONFormulaDurationTimestampusagestringrequiredmeasureone ofAttributes
MeasureEnum
BlankEnum
NullEnum
null
updatedstring · date-timerequiredread-onlyhas_smart_naming_conventionbooleanrequiredread-only
Create datastreams copy mapping
POST/api/datastreams/{id}/copy-mapping/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object APIDatastreamFull
stack_idintegerrequiredwrite-onlyauthintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
transformer_idsarray of integerrequiredwrite-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingoverwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Create datastreams copy
POST/api/datastreams/{id}/copy/
API key permissionDatastream: Writedatastream:write
Copy a datastream. Without stack, or with stack equal to the source workspace, the copy is a same-workspace duplicate (disabled, destination bindings copied disabled, mapping copied).
With a different stack (HI-304) the copy follows the UI Clone wizard: fetch configuration, schedules and column mappings are carried over, the authorization is reused when the target workspace can see it and cloned otherwise, and the source's destination bindings, enrichments and monitors are NOT carried. Optional destinations (ids usable from the target workspace; bindings created disabled), enrichments (ids usable from the target workspace) and authorization_id attach what the copy should use. The response then carries a report with reused, cloned, attached and dropped lists. Ids not usable from the target workspace return 400.
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object CopyDatastreamRequest
destinationsarray of integerDestinations in the target workspace (or a parent) to bind, disabled.
enrichmentsarray of integerEnrichments usable from the target workspace to assign to the copy.
authorization_idintegernullableAuthorization usable from the target workspace, replacing the source's.
authintegernullableAlias of authorization_id (the datastream serializer's field name).
namestringName of the copy.
stackintegerWorkspace of the copy. Omit or pass the source workspace for a plain duplicate; a different workspace switches to clone semantics.
Responses
200OKapplication/json
Response schema
object CopyDatastreamResponse
statusstringrequiredidintegerrequiredurlstringrequiredreportobjectOnly present on a copy into a different workspace.
Attributes · CopyDatastreamReport
reusedarray of stringrequiredclonedarray of stringrequiredattachedarray of stringrequireddroppedarray of stringrequired
Get datastreams default mapping
GET/api/datastreams/{id}/default-mapping/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Get datastreams extracts most recent download
GET/api/datastreams/{id}/extracts/most-recent/download/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Get datastreams extracts streaming download
GET/api/datastreams/{id}/extracts/streaming/download/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Get datastreams fetch
GET/api/datastreams/{id}/fetch/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Create datastreams fetch
POST/api/datastreams/{id}/fetch/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object APIDatastreamFull
stack_idintegerrequiredwrite-onlyauthintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
transformer_idsarray of integerrequiredwrite-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingoverwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Create datastreams fetch fixed
POST/api/datastreams/{id}/fetch_fixed/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object APIDatastreamFull
stack_idintegerrequiredwrite-onlyauthintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150descriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
transformer_idsarray of integerrequiredwrite-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingoverwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
is_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
List datastreams jobs
GET/api/datastreams/{id}/jobs/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Query parameters
pageintegerA page number within the paginated result set.
page_sizeintegerNumber of results to return per page.
Responses
200OKapplication/json
Response schema
object PaginatedFetchJobList
countintegerrequiredExample
123nextstring · urinullableExample
"http://api.example.org/accounts/?page=4"previousstring · urinullableExample
"http://api.example.org/accounts/?page=2"resultsarray of objectrequiredItems · FetchJob
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlyjob_startstring · date-timerequiredread-onlynullablejob_endstring · date-timerequiredread-onlynullableprogressintegerrequiredread-onlystateintegerrequiredread-onlystate_labelstringrequiredread-onlyDisplay label for the job state. "Retrying" while the job is waiting out a retry/backoff; otherwise the label matching
state.stateitself is unchanged while "Retrying". The signal is derived per job group, so while a group waits out a backoff every running job in it reports the label, regardless of which stage's task is being retried.state_colorstringrequiredread-onlydatastreamobjectrequiredread-onlynullableAttributes
APIDatastreamBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
stack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlyapp_labelstringrequiredread-onlyabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyenabledbooleanStreams that are not scheduled will not be fetched automatically.
next_runstring · date-timerequiredread-onlynullableurlstring · urirequiredread-onlydatastream_type_idintegerrequiredread-onlylogo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablecan_be_fetchedbooleanrequiredread-only
null
issuesarray of objectrequiredread-onlyItems · CompactDatastreamExtractionLog
messagestringnullabletype_labelstringrequiredread-onlyextraction_stage_labelstringrequiredread-onlynullableurlstring · urirequiredread-only
last_executedstring · date-timerequiredread-onlynullableWhen a job in this job group last started executing. Job-group level: it reflects any job in the group, not this job alone. Null until the first job in the group starts - fall back to
scheduledto age a group that has not started yet. The write is debounced by 5 minutes, so the value may lag real activity by up to that much - do not build staleness alarms with a tighter threshold.userstringrequiredread-onlynullablerange_startstring · date-timerequiredread-onlyrange_endstring · date-timerequiredread-onlyscheduledstring · date-timerequiredread-onlymanualbooleanread-onlynullableTrue for fetches started from the Adverity UI, a refetch or a bulk load; false for scheduled fetches, fetches started through this API and other automatic fetches. Null on some older jobs. Left out when the job belongs to no job group.
Get datastreams passive destinations
GET/api/datastreams/{id}/passive-destinations/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Responses
200OKapplication/json
Response schema
object PassiveTokenUpdate
time_range_presetintegerrequired0- 013- 1310- 1011- 116- 67- 717- 1718- 1816- 1623- 2319- 1924- 244- 425- 2526- 2622- 2214- 1415- 152- 220- 2021- 215- 531- 3128- 283- 327- 278- 89- 929- 2912- 1230- 301000- 100050- 5051- 5152- 5253- 5354- 5455- 5556- 5657- 5758- 5859- 59
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859time_range_startstring · date-timenullabletime_range_endstring · date-timenullable
Create datastreams passive destinations
POST/api/datastreams/{id}/passive-destinations/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PassiveTokenUpdate
time_range_presetintegerrequired0- 013- 1310- 1011- 116- 67- 717- 1718- 1816- 1623- 2319- 1924- 244- 425- 2526- 2622- 2214- 1415- 152- 220- 2021- 215- 531- 3128- 283- 327- 278- 89- 929- 2912- 1230- 301000- 100050- 5051- 5152- 5253- 5354- 5455- 5556- 5657- 5758- 5859- 59
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859time_range_startstring · date-timenullabletime_range_endstring · date-timenullable
Responses
200OKapplication/json
Response schema
object PassiveTokenUpdate
time_range_presetintegerrequired0- 013- 1310- 1011- 116- 67- 717- 1718- 1816- 1623- 2319- 1924- 244- 425- 2526- 2622- 2214- 1415- 152- 220- 2021- 215- 531- 3128- 283- 327- 278- 89- 929- 2912- 1230- 301000- 100050- 5051- 5152- 5253- 5354- 5455- 5556- 5657- 5758- 5859- 59
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859time_range_startstring · date-timenullabletime_range_endstring · date-timenullable
Get datastreams stats
GET/api/datastreams/{id}/stats/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
Get datastreams transformer
GET/api/datastreams/{id}/transformer/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream.
Responses
200OKapplication/json
Response schema
object APIDatastreamFull
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlyurlstring · urirequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
authintegernullableWhich authorization the datastream uses.
auth_change_urlstringread-onlyLeft out when the datastream has no connection.
app_labelstringrequiredread-onlynamestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlydescriptionstringMax length
1000enabledbooleanStreams that are not scheduled will not be fetched automatically.
frequencystringrequiredread-onlynext_runstring · date-timerequiredread-onlynullablelast_fetchstring · date-timerequiredread-onlynullableabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyissues_urlstringrequiredread-onlytransformersarray of objectrequiredread-onlyItems · TransformerBasic
idintegerrequiredread-onlynamestringrequiredMax length
200stackintegernullablechange_urlstringrequiredread-onlynullable
schedulesarray of objectrequiredread-onlyItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
datastream_type_idintegerrequiredread-onlydatastream_type_namestringrequiredread-onlydatastream_type_slugstringrequiredread-onlydatatypestringProjection of destination state: reads Live if any destination is enabled, otherwise Staging. Writing 'Live' enables all destinations and 'Staging' disables them.
Live- LiveStaging- Staging
One of
LiveStagingactionsarray of objectrequiredread-onlyThe datastream's "Fetch" action: at most one entry, empty if the datastream type has no Fetch action. Each entry has the action name, a URL into the Adverity admin interface to trigger it, the required permission, and presentation hints for the UI (
classes,glyph).Items · DatastreamDashboardAction
actionstringrequiredurlstringrequiredclassesstringrequiredglyphstringrequirednullablepermissionstringrequirednullable
overwrite_key_columnsbooleanOverwrite rows according to Key defined in Data Mapping.
manage_extract_namesbooleanSplit by selected date column and name extracts with pre-defined pattern to consolidate data.
extract_name_keysstringnullableMax length
128retention_typeinteger1- Retain all2- Retain N fetches4- Retain N extracts3- Retain N days
One of
1243· Min0· Max32767retention_numberintegernullableThe amount (N) of fetches/extracts/days to retain (raw extracts are not counted). Must be an integer greater than or equal to zero.
Min
0· Max32767remove_if_emptybooleanWhen enabled, fetches resulting in only empty rows ("empty extracts") will be silently discarded.
skip_empty_rowsbooleanWhen enabled, empty data rows in fetches will be silently ignored.
prune_instantlybooleanWhen enabled, deleted files will not be kept for the configured grace period.
overwrite_datastreambooleanDelete/Drop all existing rows (created by this datastream) in the destination before inserting a new import.
overwrite_filenamebooleanOverwrite rows from same extract file.
logo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlyactive_destinationobjectrequiredread-onlynullablesupports_passive_destinationsbooleanrequiredread-onlypassive_destinationsone ofrequiredread-onlyAttributes
object
string
columnsstring · urirequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablehas_schema_mappingbooleanrequiredread-onlyis_insights_mediaplanbooleanIf checked, generated extracts will be treated as Insights mediaplans.
cron_typestringOne of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0cron_start_of_daystring · timecron_interval_startintegerMin
0time_range_presetinteger0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859delta_intervalintegerMin
0delta_interval_startintegerMin
0delta_start_of_daystring · timedelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657time_range_maxintegerrequiredread-onlynullabletime_range_availablearray of string · date-timerequiredread-onlynullablehas_schema_mapping_dimensionbooleanrequiredread-onlyfeature_smart_naming_conventionbooleanrequiredread-onlyauto_fetchbooleanrequiredread-onlynullableassigned_destinationsarray of objectread-onlyReturned only when the request has expand=destinations.
Items · AssignedDestination
target_idintegerrequiredread-onlydestination_namestringrequiredread-onlydestination_typestringrequiredread-onlyenabledbooleanrequiredread-onlydestination_settingsobjectrequiredread-only
can_be_fetchedbooleanrequiredread-only
List datastreams schedules
GET/api/datastreams/{parent_lookup_datastream_id}/schedules/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
parent_lookup_datastream_idintegerrequired
Query parameters
orderingstringWhich field to use when ordering the results.
pageintegerA page number within the paginated result set.
Responses
200OKapplication/json
Response schema
object PaginatedFetchScheduleList
countintegerrequiredExample
123nextstring · urinullableExample
"http://api.example.org/accounts/?page=4"previousstring · urinullableExample
"http://api.example.org/accounts/?page=2"resultsarray of objectrequiredItems · FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
Create datastreams schedules
POST/api/datastreams/{parent_lookup_datastream_id}/schedules/
API key permissionDatastream: Writedatastream:write
Path parameters
parent_lookup_datastream_idintegerrequired
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object FetchSchedule
cron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
Responses
201Createdapplication/json
Response schema
object FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
Get datastreams schedules
GET/api/datastreams/{parent_lookup_datastream_id}/schedules/{id}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this fetch schedule.
parent_lookup_datastream_idintegerrequired
Responses
200OKapplication/json
Response schema
object FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
Replace datastreams schedules
PUT/api/datastreams/{parent_lookup_datastream_id}/schedules/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this fetch schedule.
parent_lookup_datastream_idintegerrequired
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object FetchSchedule
cron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
Responses
200OKapplication/json
Response schema
object FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
Update datastreams schedules
PATCH/api/datastreams/{parent_lookup_datastream_id}/schedules/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this fetch schedule.
parent_lookup_datastream_idintegerrequired
Request body
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object PatchedFetchSchedule
cron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767delta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
Responses
200OKapplication/json
Response schema
object FetchSchedule
idintegerrequiredread-onlycron_presetstringONCE- OnceCRON_EVERY_DAY- Every dayCRON_EVERY_WEEK- Every weekCRON_EVERY_MONTH- Every monthCRON_EVERY_QUARTER- Every quarterCRON_EVERY_15_MINUTES- Every 15 minutesCRON_EVERY_30_MINUTES- Every 30 minutesCRON_EVERY_HOUR- Every hourCRON_EVERY_2_HOURS- Every 2 hoursCRON_EVERY_3_HOURS- Every 3 hoursCRON_EVERY_4_HOURS- Every 4 hoursCRON_EVERY_5_HOURS- Every 5 hoursCRON_EVERY_6_HOURS- Every 6 hoursCRON_EVERY_8_HOURS- Every 8 hoursCRON_EVERY_12_HOURS- Every 12 hoursCRON_EVERY_2_DAYS- Every 2 daysCRON_EVERY_30_DAYS- Every 30 daysCRON_EVERY_40_DAYS- Every 40 daysCRON_EVERY_2_WEEKS- Every 2 weeksCRON_EVERY_4_WEEKS- Every 4 weeksCRON_EVERY_6_MONTHS- Every 6 monthsCRON_EVERY_YEAR- Every year
One of
ONCECRON_EVERY_DAYCRON_EVERY_WEEKCRON_EVERY_MONTHCRON_EVERY_QUARTERCRON_EVERY_15_MINUTESCRON_EVERY_30_MINUTESCRON_EVERY_HOURCRON_EVERY_2_HOURSCRON_EVERY_3_HOURSCRON_EVERY_4_HOURSCRON_EVERY_5_HOURSCRON_EVERY_6_HOURSCRON_EVERY_8_HOURSCRON_EVERY_12_HOURSCRON_EVERY_2_DAYSCRON_EVERY_30_DAYSCRON_EVERY_40_DAYSCRON_EVERY_2_WEEKSCRON_EVERY_4_WEEKSCRON_EVERY_6_MONTHSCRON_EVERY_YEARcron_typestringDefaults to 'day' when omitted on a schedule entry.
One of
minutehourdayweekmonthquarteryearoncecron_intervalintegerMin
0· Max2147483647cron_start_of_daystring · timeAt what time the day starts.
cron_interval_startintegerMin
0· Max32767time_range_presetintegerSelect one of the time range presets.
0- Custom Time Range13- Yesterday10- Today11- Current Week6- Current Month7- Previous Month17- Last Quarter18- Last 2 Days16- Last 3 Days23- Last 4 Days19- Last 5 Days24- Last 6 Days4- Last 7 Days25- Last 8 Days26- Last 9 Days22- Last 10 Days14- Last 14 Days15- Last 28 Days2- Last 30 Days20- Last 40 Days21- Last 60 Days5- Last 90 Days31- Last 120 Days28- Last 180 Days3- Last 365 Days27- Last 730 Days8- Previous Week9- Previous Year29- Current Quarter12- Current Year30- Last Hour1000- Lifetime50- Tomorrow51- Next 2 Days52- Next 7 Days53- Next 30 Days54- Current Week (incl Future Days)55- Next Week56- Current Month (incl Future Days)57- Next Month58- Current Year (incl Future Days)59- Next Year
One of
01310116717181623192442526221415220215312832789291230100050515253545556575859· Min0· Max32767time_range_preset_labelstringrequiredread-onlydelta_typeinteger0- minute(s)1- hour(s)2- day(s)3- week(s)4- month(s)6- quarters(s)5- year(s)7- once
One of
01234657· Min-32768· Max32767delta_intervalintegerMin
0· Max2147483647delta_start_of_daystring · timeAt what time the day starts.
delta_interval_startintegerMin
0· Max32767fixed_startstring · datenullableFirst day to fetch.
fixed_endstring · datenullableLast day to fetch.
offset_daysintegerNumber of days to shift the fetched date range into the past.
Min
-32768· Max32767offset_monthsintegerNumber of calendar months to shift the fetched date range into the past. Applied before the day offset.
Min
-12· Max24not_before_datestring · datenullableFor
onceschedules: the date of the run. For weekly schedules that repeat every 2 or more weeks (the UI offersEvery 2 weeksandEvery 4 weeks): any date in the week the cycle counts from; it does not delay runs. Cleared for other recurring schedules.not_before_timestring · timenullableFor
onceschedules: the time of the run. Cleared for other frequencies.
Delete datastreams schedules
DELETE/api/datastreams/{parent_lookup_datastream_id}/schedules/{id}/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this fetch schedule.
parent_lookup_datastream_idintegerrequired
Responses
204No response body
List extracts
GET/api/extracts/
API key permissionDatastream: Read-onlydatastream:read
Query parameters
created_fromstring · date-timecreated_tostring · date-timedatastream_idnumberjob_group_idintegerjob_idintegernamestringorderingstringWhich field to use when ordering the results.
pageintegerA page number within the paginated result set.
page_sizeintegerNumber of results to return per page.
scheduled_fromstring · date-timescheduled_tostring · date-timestack_idnumberstatearray of integer3- Processing1- Collected5- Notified7- Pending2- Transferred4- Load error16- Processing error8- Deleted9- No data collected10- Deferred11- Parked12- Loaded13- Failed14- Raw15- Overwritten6- Transformation error17- Removed - Personally Identifiable Information
tagsstring
Responses
200OKapplication/json
Response schema
object PaginatedDatastreamExtractList
countintegerrequirednullableAlways null: this list does not count its rows.
Example
nullnextstring · urinullableExample
"http://api.example.org/accounts/?page=4"previousstring · urinullableExample
"http://api.example.org/accounts/?page=2"resultsarray of objectrequiredItems · DatastreamExtract
idintegerrequiredread-onlycreatedstring · date-timerequireddatastreamobjectrequiredAttributes · APIDatastreamBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
stack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlyapp_labelstringrequiredread-onlyabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyenabledbooleanStreams that are not scheduled will not be fetched automatically.
next_runstring · date-timerequiredread-onlynullableurlstring · urirequiredread-onlydatastream_type_idintegerrequiredread-onlylogo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablecan_be_fetchedbooleanrequiredread-only
namestringrequiredMax length
255scheduledstring · date-timenullablenrowsinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807ncolsintegernullableMin
0· Max32767filesizeinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807state_labelstringrequiredread-onlystate_colorstringrequiredread-onlypreview_urlstringrequiredread-onlyrefetch_urlstringrequiredread-onlynullablerequeue_urlstringrequiredread-onlynullabledownload_urlstringrequiredread-onlynullablemetadataanytagsarray of stringrequiredexplore_urlstringrequiredread-onlynullabledashboard_urlstringrequiredread-onlynullable
Get extracts
GET/api/extracts/{id}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream extract.
Responses
200OKapplication/json
Response schema
object DatastreamExtract
idintegerrequiredread-onlycreatedstring · date-timerequireddatastreamobjectrequiredAttributes · APIDatastreamBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
stack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlyapp_labelstringrequiredread-onlyabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyenabledbooleanStreams that are not scheduled will not be fetched automatically.
next_runstring · date-timerequiredread-onlynullableurlstring · urirequiredread-onlydatastream_type_idintegerrequiredread-onlylogo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablecan_be_fetchedbooleanrequiredread-only
namestringrequiredMax length
255scheduledstring · date-timenullablenrowsinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807ncolsintegernullableMin
0· Max32767filesizeinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807state_labelstringrequiredread-onlystate_colorstringrequiredread-onlypreview_urlstringrequiredread-onlyrefetch_urlstringrequiredread-onlynullablerequeue_urlstringrequiredread-onlynullabledownload_urlstringrequiredread-onlynullablemetadataanytagsarray of stringrequiredexplore_urlstringrequiredread-onlynullabledashboard_urlstringrequiredread-onlynullable
Get extracts columns
GET/api/extracts/{id}/columns/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream extract.
Responses
200OKapplication/json
Response schema
object DatastreamExtract
idintegerrequiredread-onlycreatedstring · date-timerequireddatastreamobjectrequiredAttributes · APIDatastreamBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
stack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlyapp_labelstringrequiredread-onlyabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyenabledbooleanStreams that are not scheduled will not be fetched automatically.
next_runstring · date-timerequiredread-onlynullableurlstring · urirequiredread-onlydatastream_type_idintegerrequiredread-onlylogo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablecan_be_fetchedbooleanrequiredread-only
namestringrequiredMax length
255scheduledstring · date-timenullablenrowsinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807ncolsintegernullableMin
0· Max32767filesizeinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807state_labelstringrequiredread-onlystate_colorstringrequiredread-onlypreview_urlstringrequiredread-onlyrefetch_urlstringrequiredread-onlynullablerequeue_urlstringrequiredread-onlynullabledownload_urlstringrequiredread-onlynullablemetadataanytagsarray of stringrequiredexplore_urlstringrequiredread-onlynullabledashboard_urlstringrequiredread-onlynullable
Get extracts data
GET/api/extracts/{id}/data/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream extract.
Responses
200OKapplication/json
Response schema
object DatastreamExtract
idintegerrequiredread-onlycreatedstring · date-timerequireddatastreamobjectrequiredAttributes · APIDatastreamBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
stack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlyapp_labelstringrequiredread-onlyabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyenabledbooleanStreams that are not scheduled will not be fetched automatically.
next_runstring · date-timerequiredread-onlynullableurlstring · urirequiredread-onlydatastream_type_idintegerrequiredread-onlylogo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablecan_be_fetchedbooleanrequiredread-only
namestringrequiredMax length
255scheduledstring · date-timenullablenrowsinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807ncolsintegernullableMin
0· Max32767filesizeinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807state_labelstringrequiredread-onlystate_colorstringrequiredread-onlypreview_urlstringrequiredread-onlyrefetch_urlstringrequiredread-onlynullablerequeue_urlstringrequiredread-onlynullabledownload_urlstringrequiredread-onlynullablemetadataanytagsarray of stringrequiredexplore_urlstringrequiredread-onlynullabledashboard_urlstringrequiredread-onlynullable
Get extracts download
GET/api/extracts/{id}/download/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream extract.
Responses
200Raw extract streamed inline (text extracts, or binary on a non-presigned backend).application/json
Response schema
string · binary
202Acceptedapplication/json
Response schema
object ExtractDownloadDispatch
task_idstringrequiredstatus_urlstringrequired
302Redirect to a presigned URL for raw binary extracts on S3/GCS backends.
400Invalid query parameters (e.g. unknown fileformat).
403Connector policy forbids extract download for API callers.
404Extract not found or no longer accessible.
406Extract too large to export to the requested format.
Get extracts download ready
GET/api/extracts/{id}/download/ready/{task_id}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream extract.
task_idstringrequired
Responses
200Staged converted file streamed as an attachment.application/json
Response schema
string · binary
403Connector policy forbids extract download for API callers.
404Download is not ready, the staged file has expired, or the task belongs to another extract.
Get extracts download status
GET/api/extracts/{id}/download/status/{task_id}/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream extract.
task_idstringrequired
Responses
200OKapplication/json
Response schema
object ExtractDownloadStatus
statestringrequiredready_urlstringfilenamestringnullablemimetypestringnullablesize_bytesintegernullableexpires_atstringnullableerrorstringerror_messagestring
403Connector policy forbids extract download for API callers.
404Extract no longer accessible, or the task belongs to another extract.
Get extracts metadata
GET/api/extracts/{id}/metadata/
API key permissionDatastream: Read-onlydatastream:read
Path parameters
idintegerrequiredA unique integer value identifying this Datastream extract.
Responses
200OKapplication/json
Response schema
object DatastreamExtract
idintegerrequiredread-onlycreatedstring · date-timerequireddatastreamobjectrequiredAttributes · APIDatastreamBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
stack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlyapp_labelstringrequiredread-onlyabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyenabledbooleanStreams that are not scheduled will not be fetched automatically.
next_runstring · date-timerequiredread-onlynullableurlstring · urirequiredread-onlydatastream_type_idintegerrequiredread-onlylogo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablecan_be_fetchedbooleanrequiredread-only
namestringrequiredMax length
255scheduledstring · date-timenullablenrowsinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807ncolsintegernullableMin
0· Max32767filesizeinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807state_labelstringrequiredread-onlystate_colorstringrequiredread-onlypreview_urlstringrequiredread-onlyrefetch_urlstringrequiredread-onlynullablerequeue_urlstringrequiredread-onlynullabledownload_urlstringrequiredread-onlynullablemetadataanytagsarray of stringrequiredexplore_urlstringrequiredread-onlynullabledashboard_urlstringrequiredread-onlynullable
Create extracts transform apply
POST/api/extracts/{id}/transform/apply/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream extract.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object DatastreamExtract
createdstring · date-timerequireddatastreamobjectrequiredAttributes · APIDatastreamBasic
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150enabledbooleanStreams that are not scheduled will not be fetched automatically.
namestringrequiredMax length
255scheduledstring · date-timenullablenrowsinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807ncolsintegernullableMin
0· Max32767filesizeinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807metadataanytagsarray of stringrequired
Responses
200OKapplication/json
Response schema
object DatastreamExtract
idintegerrequiredread-onlycreatedstring · date-timerequireddatastreamobjectrequiredAttributes · APIDatastreamBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
stack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlyapp_labelstringrequiredread-onlyabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyenabledbooleanStreams that are not scheduled will not be fetched automatically.
next_runstring · date-timerequiredread-onlynullableurlstring · urirequiredread-onlydatastream_type_idintegerrequiredread-onlylogo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablecan_be_fetchedbooleanrequiredread-only
namestringrequiredMax length
255scheduledstring · date-timenullablenrowsinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807ncolsintegernullableMin
0· Max32767filesizeinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807state_labelstringrequiredread-onlystate_colorstringrequiredread-onlypreview_urlstringrequiredread-onlyrefetch_urlstringrequiredread-onlynullablerequeue_urlstringrequiredread-onlynullabledownload_urlstringrequiredread-onlynullablemetadataanytagsarray of stringrequiredexplore_urlstringrequiredread-onlynullabledashboard_urlstringrequiredread-onlynullable
Create extracts transform preview
POST/api/extracts/{id}/transform/preview/
API key permissionDatastream: Writedatastream:write
Path parameters
idintegerrequiredA unique integer value identifying this Datastream extract.
Request bodyrequired
application/json also application/x-www-form-urlencoded, multipart/form-data
Body schema
object DatastreamExtract
createdstring · date-timerequireddatastreamobjectrequiredAttributes · APIDatastreamBasic
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150enabledbooleanStreams that are not scheduled will not be fetched automatically.
namestringrequiredMax length
255scheduledstring · date-timenullablenrowsinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807ncolsintegernullableMin
0· Max32767filesizeinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807metadataanytagsarray of stringrequired
Responses
200OKapplication/json
Response schema
object DatastreamExtract
idintegerrequiredread-onlycreatedstring · date-timerequireddatastreamobjectrequiredAttributes · APIDatastreamBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlystackobjectrequiredread-onlyAttributes · StackBasic
idintegerrequiredread-onlyuuidstring · uuidrequiredread-onlynamestringrequiredMax length
60slugstringrequiredread-onlyurlstring · urirequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyissues_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlypermissionsobjectrequiredread-onlyAttributes
isCreatorbooleanrequiredisDatastreamManagerbooleanrequiredisViewerbooleanrequired
stack_idintegerrequiredread-onlyWhich workspace the datastream belongs to.
authintegernullableWhich authorization the datastream uses.
namestringrequiredA human readable name. Numbers and special characters are supported.
Max length
150slugstringrequiredread-onlyapp_labelstringrequiredread-onlyabsolute_urlstringrequiredread-onlychange_urlstringrequiredread-onlyextracts_urlstringrequiredread-onlyfetch_urlstringrequiredread-onlyoverview_urlstringrequiredread-onlyschema_mapping_urlstringrequiredread-onlyenabledbooleanStreams that are not scheduled will not be fetched automatically.
next_runstring · date-timerequiredread-onlynullableurlstring · urirequiredread-onlydatastream_type_idintegerrequiredread-onlylogo_urlstringrequiredread-onlyextracts_stream_urlstringrequiredread-onlysupports_extended_intervalsbooleanrequiredread-onlyupdatedstring · date-timerequiredread-onlycreatedstring · date-timerequiredread-onlycreatorstringrequiredread-onlynullablecan_be_fetchedbooleanrequiredread-only
namestringrequiredMax length
255scheduledstring · date-timenullablenrowsinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807ncolsintegernullableMin
0· Max32767filesizeinteger · int64nullableMin
-9223372036854775808· Max9223372036854775807state_labelstringrequiredread-onlystate_colorstringrequiredread-onlypreview_urlstringrequiredread-onlyrefetch_urlstringrequiredread-onlynullablerequeue_urlstringrequiredread-onlynullabledownload_urlstringrequiredread-onlynullablemetadataanytagsarray of stringrequiredexplore_urlstringrequiredread-onlynullabledashboard_urlstringrequiredread-onlynullable
List datastreams (GET /api/v1/datastreams/)
GET/api/v1/datastreams/
API key permissionDatastream: Read-onlydatastream:read
Retrieve datastreams with their common configuration options.
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.One of
anyall· Default"any"pageintegerDefault
1· Min1page_sizeintegerDefault
50· Min1
Responses
200OKapplication/json
Response schema
object PagedDatastreamListItemSchema
itemsarray of objectrequiredItems · DatastreamListItemSchema
idstring · uuidrequirednamestringrequiredenabledbooleanrequiredpullingobjectrequiredAttributes · PullingSchema
active_modestringnullableAttributes
ActivePullingMode
null
smartobjectnullableAttributes
SmartPullingReadSchema
is_activebooleanrequiredrange_specarray of objectrequiredThe fetch schedule the datastream runs: up to four rules, each pairing a frequency with the time range to re-fetch when it fires. The authoritative half of this object.
Items · SmartPullingRangeRule
frequencyobjectrequiredHow often a range is (re-)pulled, e.g.
{value: 40, unit: day}.Attributes · Frequency
valueintegerrequiredMin
1unitstringrequiredOne of
dayweekmonthquarteryear
rangeobjectrequiredHow much history to pull each time, e.g.
{value: 1, unit: month}.Every range is pulled *to date*: it resolves to a window ending yesterday, never at a stale past boundary (
smart_fetch.utils.date.resolve_range).{value: 7, unit: day}is the last 7 days ending yesterday; a calendar unit snaps the window's start to a period boundary, so{value: 1, unit: month}runs from the 1st of *last* month through yesterday -- the "Last Month to date" window, growing as the current month progresses.Hence the smallest
valueis1(inherited fromTimeBase) and not0: one period back is a to-date window's own base, and0-- whichcore.constants' plain to-date presets use for the current period *including today* -- is not expressible here.Attributes · Range
valueintegerrequiredMin
1unitstringrequiredOne of
dayweekmonthquarteryear
onobjectnullableAttributes
On
dayintegerrequiredMin
1· Max28day_typestringrequiredOne of
weekmonth
null
deadlineobjectnullableAttributes
DeadlineSchema
timestring · timenullableTime of day the data should be delivered by, on the half hour (e.g. 17:00:00). UTC only: an offset is rejected rather than converted. Null means as soon as possible.
Attributes
string · time
null
null
startobjectnullableEarliest fetch start. Omit the field to keep whatever is already stored; send null to inherit the workspace default; send an object to set a per-datastream value. Must be before the effective deadline once inheritance is resolved.
Attributes
StartSchema
timestring · timenullableEarliest time of day a fetch may start, on the half hour (e.g. 09:00:00). UTC only: an offset is rejected rather than converted. Null lifts the restriction for this datastream, overriding any workspace default.
Attributes
string · time
null
null
frequencystringrequiredOne of
dailyweeklymonthlyrefresh_rangeobjectnullableHistory re-fetched beyond one
frequencyperiod by the rulefrequencywas taken from, always expressed in days. Derived and lossy, likefrequency.Attributes
RefreshRangeSchema
valueintegerrequiredunitstringrequiredOne of
dayweekmonth
null
null
smart_bundlearray of objectnullableAttributes
array of object
null
schedulearray of objectnullableAttributes
array of object
null
workspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
tagsarray of objectrequiredItems · DatastreamTagMinimalSchema
idstring · uuidrequirednamestringrequired
countintegerrequired
Partially update common configuration options
PATCH/api/v1/datastreams/
API key permissionDatastream: Writedatastream:write
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.One of
anyall· Default"any"
Request bodyrequired
application/json
Body schema
object DatastreamListItemPatchSchema
enabledbooleannullableAttributes
boolean
null
pullingobjectnullableAttributes
PullingPatchSchema
active_modestringnullableAttributes
ActivePullingSetMode
null
null
Responses
200OKapplication/json
Response schema
object BulkActionResponseSchema
affectedobjectrequiredAttributes · AffectedDatastreamsSchema
datastream_idsarray of string · uuidrequired
Bulk assign monitors to datastreams
POST/api/v1/datastreams/custom-monitors/deprecated
API key permissionMonitor: Writemonitor:write
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.One of
anyall· Default"any"
Request bodyrequired
application/json
Body schema
array of string · uuid UUIDListSchema
Responses
200OKapplication/json
Response schema
object BulkMonitorAssignmentResponseSchema
assigned_datastream_idsarray of string · uuidrequiredskipped_datastream_idsarray of string · uuidrequired
Bulk unassign monitors from datastreams
DELETE/api/v1/datastreams/custom-monitors/deprecated
API key permissionMonitor: Writemonitor:write
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.One of
anyall· Default"any"
Request bodyrequired
application/json
Body schema
array of string · uuid UUIDListSchema
Responses
200OKapplication/json
Response schema
array of string · uuid UUIDListSchema
Discover monitors available for bulk datastream assignment
OPTIONS/api/v1/datastreams/custom-monitors/deprecated
API key permissionMonitor: Read-onlymonitor:read
Without filters, returns all accessible monitors. With datastream filters (e.g. ?datastream_id=), returns only monitors whose workspace family covers all matched datastreams.
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.One of
anyall· Default"any"pageintegerDefault
1· Min1page_sizeintegerDefault
50· Min1
Responses
200OKapplication/json
Response schema
object PagedMonitorSummarySchema
itemsarray of objectrequiredItems · MonitorSummarySchema
idstring · uuidrequirednamestringrequiredseveritystringrequiredOne of
errorwarningworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
countintegerrequired
Replace smart-pulling configuration
PUT/api/v1/datastreams/pulling/smart/
API key permissionDatastream: Writedatastream:write
Upsert smart-pulling configuration for multiple datastreams. Applies the same settings to all targeted datastreams. The request carries the full range specification, so it replaces every rule the datastream had.
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.One of
anyall· Default"any"
Request bodyrequired
application/json
Body schema
object SmartPullingSchema
is_activebooleanrequiredrange_specarray of objectrequiredA non-empty list of
SmartPullingRangeRulewhose frequencies are unique.Two entries collide when their
SmartPullingRangeRule.frequency_keyvalues are equal (e.g. twofrequency {1, day}entries, or twofrequency {1, week}entries — regardless of theironday). Uniqueness is on the configuredfrequencyalone, not ononor on evaluated trigger dates.The list must hold at least one entry: an empty spec on an *active* smart fetch fetches nothing and reports no reason why —
get_missing_date_rangesimply finds no entry due today, which is indistinguishable from a non-trigger day.Items · SmartPullingRangeSpec
frequencyobjectrequiredHow often a range is (re-)pulled, e.g.
{value: 40, unit: day}.Attributes · Frequency
valueintegerrequiredMin
1unitstringrequiredOne of
dayweekmonthquarteryear
rangeobjectrequiredHow much history to pull each time, e.g.
{value: 1, unit: month}.Every range is pulled *to date*: it resolves to a window ending yesterday, never at a stale past boundary (
smart_fetch.utils.date.resolve_range).{value: 7, unit: day}is the last 7 days ending yesterday; a calendar unit snaps the window's start to a period boundary, so{value: 1, unit: month}runs from the 1st of *last* month through yesterday -- the "Last Month to date" window, growing as the current month progresses.Hence the smallest
valueis1(inherited fromTimeBase) and not0: one period back is a to-date window's own base, and0-- whichcore.constants' plain to-date presets use for the current period *including today* -- is not expressible here.Attributes · Range
valueintegerrequiredMin
1unitstringrequiredOne of
dayweekmonthquarteryear
onobjectnullableAttributes
On
dayintegerrequiredMin
1· Max28day_typestringrequiredOne of
weekmonth
null
deadlineobjectnullableAttributes
DeadlineSchema
timestring · timenullableTime of day the data should be delivered by, on the half hour (e.g. 17:00:00). UTC only: an offset is rejected rather than converted. Null means as soon as possible.
Attributes
string · time
null
null
startobjectnullableEarliest fetch start. Omit the field to keep whatever is already stored; send null to inherit the workspace default; send an object to set a per-datastream value. Must be before the effective deadline once inheritance is resolved.
Attributes
StartSchema
timestring · timenullableEarliest time of day a fetch may start, on the half hour (e.g. 09:00:00). UTC only: an offset is rejected rather than converted. Null lifts the restriction for this datastream, overriding any workspace default.
Attributes
string · time
null
null
Responses
200OKapplication/json
Response schema
object BulkActionResponseSchema
affectedobjectrequiredAttributes · AffectedDatastreamsSchema
datastream_idsarray of string · uuidrequired