Dashboards & Visualizations

API request to change permissions on dashboards and reports returns 404 and 409s

klim
Path Finder

I have a dashboard that shows a users dashboards and reports in the app. I can click the object I want and it will call a custom command that uses the REST api to make the permission change. This works fine with the command being invoked in a panel that is hidden until an object is selected.

However when I implement a modal pop up that has the REST api call search defined and ran in a .js file, I sometimes get a 404 and 409 error when changing the objects permissions. But the objects' permissions are still successfully changed.

Edit: I checked the internal log and when I run the custom command via the javascript file, it calls the REST API 3 times. Running it from a dashboard always runs it once.

Labels (3)
0 Karma
Get Updates on the Splunk Community!

Explore the Latest Educational Offerings from Splunk [January 2025 Updates]

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...