Forum Discussion
Has anyone gotten this API to disable a Direct Query refresh that is enabled?
Hi mbutler71 ,
Make sure that your request contains all required parameters and that the access token used has the necessary permissions (The user must be the dataset owner).
There may be issues with the body of the request, be careful with how the attributes are set, make sure there are no trailing commas or syntax errors in the actual body of the request to be sent, and the JSON structure needs to conform to the API's expectations.
This is the related document, you can view this content:
Solved: Re: Power BI API doesn't disable Direct Query, but... - Microsoft Fabric Community
What is the correct JSON body to disable PowerBi Schedule Refresh via API - Stack Overflow
Solved: Keep getting a 400 Bad Request error when trying t... - Microsoft Fabric Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.