-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect API error message #371
Comments
Hi, |
Hello, please let me know if this is working... |
Thank you! I'm sorry, I checked again, it is indeed working. However, I think there is a bug concerning the returned error message. My mistake was, that I had two users A and B with two different internal data sets, I accidentally tried to access the dataset of user A with the credentials of user B. I didn't spot it at first due to this error message posted earlier. It might be more convenient if in this scenario instead an error message such as "This dataset does not exist for this user" is returned. |
Hello, |
Thank you! |
Hi,
I tried to use the REST API as suggested in the documentation with the CURL command and the URL corresponding to the REST API string provided in the nextcloud analytics web interface after adding a local dataset.
curl -u user:password -d '{"data":[{"dimension1": "x", "dimension2": "x", "value": "1"}]}' -X POST -H "Content-Type: application/json" https://***/apps/analytics/api/3.0/data/1/add
However, this results in the error {"success":false,"error":{"code":9002,"message":"Report does not allow data maintenance"}}, which I am not able to fix using existing user documentation. My goal was to create a local database on the nextcloud instance that is updated via the REST API. This might either be a bug or me misinterpreting the user documentation. Please help me.
Thank you!
The text was updated successfully, but these errors were encountered: