If a data source is a dynamic data source it will have more than one instance associated with it. A data source that has one instance will use the same ID for both the data source and the data source instance.

GET /datasource-instances/{id}/data

Description

Get the details for the specific data source ID.

Permissions

dashboard.library

Resource URL

https://app.klipfolio.com/api/1.0/datasource-instances/{id}/data

Parameters

id={datasource id}

Example Request

GET https://app.klipfolio.com/api/1/datasource-instances/0123456789abcdef0123456789abcdef/data

Example Response

{
"data": {
   ga:continent,ga:visitors,ga: visits,ga: pageviews
   (not set),16,36,286
   Africa,157,545,3717
   Americas,4058,11956,105724
   Asia,824,2154,22109
   Europe,2102,8511,85399
   Oceania,544,2084,18580
},
"meta": {
   "status": 200,
   "success": true
}
}

PUT /datasource-instances/{id}/data

Description

Update the specified data source instance with data. Works with files and with raw data. For web accessible data sources use POST /@/refresh to get new data.

Permissions

dashboard.library

Resource URL

https://app.klipfolio.com/api/1.0/datasource-instances/{id}/data

Parameters

id={datasource id}

Example Request

PUT https://app.klipfolio.com/api/1/datasource-instances/0123456789abcdef0123456789abcdef/data -d “<filename>”

Example Response:

{ "meta": { "success": true, "status": 200 }, "data": { } }