| 
									
										
										
										
											2022-02-08 20:38:43 +08:00
										 |  |  | package definitions | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import "github.com/grafana/grafana/pkg/api/dtos" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // swagger:route GET /user/preferences user_preferences getUserPreferences
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Get user preferences.
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Responses:
 | 
					
						
							|  |  |  | // 200: getPreferencesResponse
 | 
					
						
							|  |  |  | // 401: unauthorisedError
 | 
					
						
							|  |  |  | // 500: internalServerError
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // swagger:route PUT /user/preferences user_preferences updateUserPreferences
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Update user preferences.
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Omitting a key (`theme`, `homeDashboardId`, `timezone`) will cause the current value to be replaced with the system default value.
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Responses:
 | 
					
						
							|  |  |  | // 200: okResponse
 | 
					
						
							|  |  |  | // 400: badRequestError
 | 
					
						
							|  |  |  | // 401: unauthorisedError
 | 
					
						
							|  |  |  | // 500: internalServerError
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-17 20:07:20 +08:00
										 |  |  | // swagger:route PATCH /user/preferences user_preferences patchUserPreferences
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Patch user preferences.
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Responses:
 | 
					
						
							|  |  |  | // 200: okResponse
 | 
					
						
							|  |  |  | // 400: badRequestError
 | 
					
						
							|  |  |  | // 401: unauthorisedError
 | 
					
						
							|  |  |  | // 500: internalServerError
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-08 20:38:43 +08:00
										 |  |  | // swagger:parameters updateUserPreferences updateOrgPreferences updateTeamPreferences
 | 
					
						
							|  |  |  | type UpdateUserPreferencesParam struct { | 
					
						
							|  |  |  | 	// in:body
 | 
					
						
							|  |  |  | 	// required:true
 | 
					
						
							|  |  |  | 	Body dtos.UpdatePrefsCmd `json:"body"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // swagger:response getPreferencesResponse
 | 
					
						
							|  |  |  | type GetPreferencesResponse struct { | 
					
						
							|  |  |  | 	// in:body
 | 
					
						
							|  |  |  | 	Body dtos.Prefs `json:"body"` | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-03-17 20:07:20 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // swagger:parameters patchUserPreferences patchOrgPreferences patchTeamPreferences
 | 
					
						
							|  |  |  | type PatchUserPreferencesParam struct { | 
					
						
							|  |  |  | 	// in:body
 | 
					
						
							|  |  |  | 	// required:true
 | 
					
						
							|  |  |  | 	Body dtos.PatchPrefsCmd `json:"body"` | 
					
						
							|  |  |  | } |