Reports - Update Report Content
Updates the specified report from "My Workspace" to have the same content as the report in the request body.
Required scope: Report.ReadWrite.All
To set the permissions scope, see Register an app.
POST https://api.powerbi.com/v1.0/myorg/reports/{reportId}/UpdateReportContent
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
report
|
path | True |
|
The report id |
Request Body
Name | Required | Type | Description |
---|---|---|---|
sourceReport | True |
Source from existing report |
|
sourceType | True |
The source type for the content update. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Examples
example
Sample Request
POST https://api.powerbi.com/v1.0/myorg/reports/5b218778-e7a5-4d73-8187-f10824047715/UpdateReportContent
{
"sourceReport": {
"sourceReportId": "8e4d5880-81d6-4804-ab97-054665050799",
"sourceWorkspaceId": "2f42a406-a075-4a15-bbf2-97ef958c94cb"
},
"sourceType": "ExistingReport"
}
Sample Response
Definitions
Endorsement |
Power BI endorsement details |
Report |
A Power BI report. Below is a list of properties that may be returned for a report. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database. |
Sensitivity |
Artifact sensitivity label info |
Source |
Source from existing report |
source |
The source type for the content update. |
Update |
Power BI update report content request |
EndorsementDetails
Power BI endorsement details
Name | Type | Description |
---|---|---|
certifiedBy |
|
The user that certified the artifact |
endorsement |
|
The endorsement status |
Report
A Power BI report. Below is a list of properties that may be returned for a report. Only a subset of the properties will be returned depending on the API called, the caller permissions and the availability of the data in the Power BI database.
Name | Type | Description |
---|---|---|
createdBy |
|
The report owner |
createdDateTime |
|
The report created date time. |
datasetId |
|
The dataset id |
description |
|
The report description |
embedUrl |
|
The report embed url |
endorsementDetails |
The report endorsement details |
|
id |
|
The report id |
modifiedBy |
|
The user that modified this report |
modifiedDateTime |
|
The report modified date time. |
name |
|
The report name |
reportType |
enum:
|
The report type |
sensitivityLabel |
The report sensitivity label |
|
webUrl |
|
The report web url |
SensitivityLabel
Artifact sensitivity label info
Name | Type | Description |
---|---|---|
labelId |
|
The sensitivity label ID |
SourceReport
Source from existing report
Name | Type | Description |
---|---|---|
sourceReportId |
|
source report id |
sourceWorkspaceId |
|
source worksapce id |
sourceType
The source type for the content update.
Name | Type | Description |
---|---|---|
ExistingReport |
|
Use an existing report as a source for updating the content of a target report. |
UpdateReportContentRequest
Power BI update report content request
Name | Type | Description |
---|---|---|
sourceReport |
Source from existing report |
|
sourceType |
The source type for the content update. |