Datasets - Get Refresh History In Group
Returns the refresh history of the specified dataset from the specified workspace.
Required scope: Dataset.ReadWrite.All or Dataset.Read.All
To set the permissions scope, see Register an app.
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes?$top={$top}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
dataset
|
path | True |
|
The dataset id |
group
|
path | True |
|
The workspace id |
$top
|
query |
|
The requested number of entries in the refresh history. If not provided, the default is all available entries. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Examples
completed refresh example |
Failed refresh example |
in progress refresh example |
completed refresh example
Sample Request
GET https://api.powerbi.com/v1.0/myorg/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/datasets/cfafbeb1-8037-4d0c-896e-a46fb27ff229/refreshes?$top=1
Sample Response
{
"value": [
{
"refreshType": "ViaApi",
"startTime": "2017-06-13T09:25:43.153Z",
"endTime": "2017-06-13T09:31:43.153Z",
"status": "Completed",
"requestId": "9399bb89-25d1-44f8-8576-136d7e9014b1"
}
]
}
Failed refresh example
Sample Request
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/cfafbeb1-8037-4d0c-896e-a46fb27ff229/refreshes?$top=1
Sample Response
{
"value": [
{
"refreshType": "ViaApi",
"startTime": "2017-06-13T09:25:43.153Z",
"endTime": "2017-06-13T09:31:43.153Z",
"serviceExceptionJson": "{\"errorCode\":\"ModelRefreshFailed_CredentialsNotSpecified\"}",
"status": "Failed",
"requestId": "11bf290a-346b-48b7-8973-c5df149337ff"
}
]
}
in progress refresh example
Sample Request
GET https://api.powerbi.com/v1.0/myorg/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/datasets/cfafbeb1-8037-4d0c-896e-a46fb27ff229/refreshes?$top=1
Sample Response
{
"value": [
{
"refreshType": "ViaApi",
"startTime": "2017-06-13T09:25:43.153Z",
"status": "Unknown",
"requestId": "9399bb89-25d1-44f8-8576-136d7e9014b1"
}
]
}
Definitions
Refresh |
A Power BI refresh history entry |
Refreshes |
Odata response wrapper for a Power BI refresh history |
Refresh |
Type of refresh request |
Refresh
A Power BI refresh history entry
Name | Type | Description |
---|---|---|
endTime |
|
DateTime of termination (may be empty if refresh is progress) |
refreshType |
Type of refresh request |
|
requestId |
|
The identifier of the Refresh request. |
serviceExceptionJson |
|
Failure error code in json format (not empty only on error). |
startTime |
|
DateTime of start |
status |
|
'Unknown' - Unknown completion state or refresh is in progress. endTime will be empty with this status. |
Refreshes
Odata response wrapper for a Power BI refresh history
Name | Type | Description |
---|---|---|
odata.context |
|
|
value |
|
The Refresh history list |
RefreshType
Type of refresh request
Name | Type | Description |
---|---|---|
OnDemand |
|
Refresh was triggered interactively threw Power BI portal |
Scheduled |
|
Refresh was triggered by the dataset refresh schedule setting |
ViaApi |
|
Refresh was triggered by an Api call |