mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: Add docs for bulk updating team members (#91499)
add docs for bulk updating team members
This commit is contained in:
@@ -404,6 +404,52 @@ Status Codes:
|
|||||||
| ---------- | -------- |
|
| ---------- | -------- |
|
||||||
| teams:read | teams:\* |
|
| teams:read | teams:\* |
|
||||||
|
|
||||||
|
**Example Request**:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/teams/2/preferences HTTP/1.1
|
||||||
|
Accept: application/json
|
||||||
|
Content-Type: application/json
|
||||||
|
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
|
||||||
|
```
|
||||||
|
|
||||||
|
**Example Response**:
|
||||||
|
|
||||||
|
```http
|
||||||
|
HTTP/1.1 200
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"theme": "",
|
||||||
|
"homeDashboardId": 0,
|
||||||
|
"timezone": ""
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Update Team Preferences
|
||||||
|
|
||||||
|
`PUT /api/teams/:teamId/preferences`
|
||||||
|
|
||||||
|
**Required permissions**
|
||||||
|
|
||||||
|
See note in the [introduction]({{< ref "#team-api" >}}) for an explanation.
|
||||||
|
|
||||||
|
| Action | Scope |
|
||||||
|
| ----------- | -------- |
|
||||||
|
| teams:write | teams:\* |
|
||||||
|
|
||||||
|
**Example Request**:
|
||||||
|
|
||||||
|
```http
|
||||||
|
PUT /api/teams/2/preferences HTTP/1.1
|
||||||
|
Accept: application/json
|
||||||
|
Content-Type: application/json
|
||||||
|
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
|
||||||
|
|
||||||
|
{
|
||||||
|
"theme": "dark",
|
||||||
|
"homeDashboardId": 39,
|
||||||
|
"timezone": "utc"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user