mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: Alerting Notification channel http api fixes (#16288)
Fix so that uid can be changed when updating notification channels through the http api. Update documentation
This commit is contained in:
committed by
Torkel Ödegaard
parent
bfba47c6c4
commit
79b86466fd
@@ -54,6 +54,7 @@ type CreateAlertNotificationCommand struct {
|
||||
|
||||
type UpdateAlertNotificationCommand struct {
|
||||
Id int64 `json:"id" binding:"Required"`
|
||||
Uid string `json:"uid"`
|
||||
Name string `json:"name" binding:"Required"`
|
||||
Type string `json:"type" binding:"Required"`
|
||||
SendReminder bool `json:"sendReminder"`
|
||||
@@ -68,6 +69,7 @@ type UpdateAlertNotificationCommand struct {
|
||||
|
||||
type UpdateAlertNotificationWithUidCommand struct {
|
||||
Uid string `json:"-"`
|
||||
NewUid string `json:"uid"`
|
||||
Name string `json:"name" binding:"Required"`
|
||||
Type string `json:"type" binding:"Required"`
|
||||
SendReminder bool `json:"sendReminder"`
|
||||
|
||||
Reference in New Issue
Block a user