Schedule an automatic Insights-Refresh

This endpoint is used to schedule a specific account or all accounts of a consumer to be automatically refreshed.

If a schedule call includes an account that was scheduled before the schedule parameters (like refresh_days, data_retention_minutes or refresh_interval_minutes) for it will be updated to the new ones.

POST /insights/v1/autorefresh/schedule HTTP/1.1
Content-Type: application/json; charset=utf-8
Authorization: Bearer <Token>
Host: <Host>
    "insights_consumer_id" : String,    
    "insights_account_ids" : ?Array<String>,
    "intended_reports" : ?Array<IntendedReport>,
    "refresh_days": ?Integer,
    "data_retention_minutes" : ?Integer,
    "refresh_interval_minutes" : Integer

insights_consumer_id String, required

The insights_consumer_id of the consumer which accounts should be scheduled for an automatic refresh. If the insights_account_ids property is not set all accounts of this consumer are scheduled to auto refresh.

insights_account_ids String[], optional

The insights_account_ids specify which accounts of the consumer should be automatically refreshed.

intended_reports IntendedReport[], optional

The intended_reports specifies which reports should later be generated with the extracted data. Using this property reduces the amount of data that is extracted from the consumers account. As default data for all available reports are extracted.

refresh_days Integer, optional

Defines how many days of data (eg. for transactions) should be received during the auto refresh.

data_retention_minutes Integer, optional

The number of minutes that the data are stored. Default is 10 minutes.

refresh_interval_minutes Integer, required

The minutes between each automatic refresh.


The response body is empty if the scheduling was successful. For unsuccessful requests the error format can be found here.


Example Request

In the follwing example an auto refreshs is scheduled for all accounts of the consumer that is identified by the given insights_consumer_id and the refresh is done every 8 hours. The data are kept for 24 hours.

    "insights_consumer_id": "d5e12345-6f7b-4b03-b018-6c158f0b281d",
    "refresh_interval_minutes": 480,
    "data_retention_minutes": 1440

results matching ""

    No results matching ""