Skip to content
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

API to get/update an Organization Preferences By ID #84309

Open
safaci2000 opened this issue Mar 12, 2024 · 0 comments · May be fixed by #84663
Open

API to get/update an Organization Preferences By ID #84309

safaci2000 opened this issue Mar 12, 2024 · 0 comments · May be fixed by #84663

Comments

@safaci2000
Copy link

Why is this needed:

There is currently no easy way to get the preferences for any arbitrary org. The only current API is /api/org/preferences which returns the preferences for the User's Org. In order to get any other Org, you need to switch the User's context which seems unnecessary.

Having something like: /orgs/{org_id}/preferences which be significantly easier to use/work with.

What would you like to be added:

GET /api/orgs/{org_id}/preferences
PUT /api/orgs/{org_id}/preferences to update the preferences of a given org.

Who is this feature for?

API users who would like to retrieve and manage an org's preferences.

@safaci2000 safaci2000 changed the title API to get an Organization Preferences By ID API to get/update an Organization Preferences By ID Mar 12, 2024
@safaci2000 safaci2000 linked a pull request Mar 18, 2024 that will close this issue
3 tasks
safaci2000 added a commit to safaci2000/grafana that referenced this issue Mar 18, 2024
safaci2000 added a commit to safaci2000/grafana that referenced this issue Mar 19, 2024
ChangeLog:
  - Adding GET /orgs/{org_id}/preferences
  - Adding PUT /orgs/{org_id}/preferences

Fixes grafana#84309
safaci2000 added a commit to safaci2000/grafana that referenced this issue Mar 25, 2024
ChangeLog:
  - Adding GET /orgs/{org_id}/preferences
  - Adding PUT /orgs/{org_id}/preferences

Fixes grafana#84309
safaci2000 added a commit to safaci2000/grafana that referenced this issue Apr 1, 2024
ChangeLog:
  - Adding GET /orgs/{org_id}/preferences
  - Adding PUT /orgs/{org_id}/preferences

Fixes grafana#84309
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants