Forum Discussion
Anonymous
4 years agoNot applicable
[REST API] Datasets Take Over: Positional Parameter cannot be found that accepts argument 'Method'
Getting the following error when trying to take over dataset using this REST API: https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/take-over-in-group Following is my code: ...
lbendlin
4 years agoSuper User
Anonymous instead of
Method -Post
you need
-Method POST
- Anonymous4 years agoNot applicable
Getting the same error after replacing -POST with POST:
- lbendlin4 years agoSuper User
Please read my reply again. Use -Method (note the dash)
- Anonymous4 years agoNot applicable
Thank you, I changed the code but getting this new error now:
Invoke-PowerBIRestMethod -Url $Url -Headers $authHeader -Body $jsonPostBody -Method POST -Verbose