Forum Discussion
dmitry_onyschen
7 years agoRegular Visitor
ERROR 0 when trying update policies using API
I receive error {"error": {"code": "0","message": ""}} when trying to update policies for PowerBIReports or Folders using API (PUT-request) I am trying to use: * python requests module * python u...
- 7 years ago
solved!
The body must be a string ))
dmitry_onyschen
7 years agoRegular Visitor
solved!
The body must be a string ))
- cari_mendez5 years agoNew Member
Sorry but I'm getting the exact same error and still couldn't solve it. I'm doing the PUT request this way:
object[] oArr = new object[] { new { InheritParentPolicy = inheritParentPolicy } }; RestRequest request = new RestRequest(string.Format("/Folders({0})/Policies", itemId), Method.PUT); request.RequestFormat = DataFormat.Json; request.AddJsonBody(oArr); IRestResponse response = _client.Execute(request);It's not an Authentication issue or something related as I'm already doing other GET, POST and PUT requests and all is working fin.
Any ideas? Thanks a lot!!