Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bspiteri001
Frequent Visitor

PBIRS 404 Bad Request when trying to change Connection String from PowerBIReports(id)/DataSources ap

Hi we recently started a server changeover for an SQL which was hosting the PowerBI Report Server. We have migrated the database and the encryption key and everything was a success. However now we wanted to change the connection string to point to the new server. 

 

The reports are connected using the SQL Server connection and they are all in import mode. 

 

Due to the fact that we had lots of reports we thought of automating this process through the use of the API. So what we did is we used the API endpoint identified in the subject and get the result, then we used the result in the value key and pasted it in the body and used the patch. 

However we are getting an HTTP 400 Bad Request message. Can you please advise the reason for this? 

 

Thanks

1 REPLY 1
bspiteri001
Frequent Visitor

All the reports do not use parameter connections and therefore for us, we cannot update through parameter 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.