API: prevent provisioned dashboard from being updated (#41894)

This commit is contained in:
Sofia Papagiannaki
2021-12-17 10:31:52 -05:00
committed by GitHub
parent db18acff15
commit c4aaf5f9d1
7 changed files with 413 additions and 3 deletions
+5
View File
@@ -103,6 +103,11 @@ var (
Reason: "Unique identifier needed to be able to get a dashboard",
StatusCode: 400,
}
ErrProvisionedDashboardNotFound = DashboardErr{
Reason: "Dashboard is not provisioned",
StatusCode: 404,
Status: "not-found",
}
)
// DashboardErr represents a dashboard error.