Annotations: Exclude internal dashboard id when saved via UID (#111535)

This commit is contained in:
Ryan McKinley
2025-09-24 15:51:20 +03:00
committed by GitHub
parent 7aed0da22c
commit 305dab3a54
4 changed files with 23 additions and 41 deletions
@@ -70,7 +70,6 @@ Content-Type: application/json
```
> Starting in Grafana v6.4 regions annotations are now returned in one entity that now includes the timeEnd property.
## Create Annotation
@@ -80,7 +79,6 @@ Content-Type: application/json
The format for `time` and `timeEnd` should be epoch numbers in millisecond resolution.
`POST /api/annotations`
**Required permissions**
@@ -90,7 +88,6 @@ Content-Type: application/json
<!-- prettier-ignore-start -->
| Action | Scope |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
<!-- prettier-ignore-end -->
| `annotations:create` | <ul><li>`annotations:*`</li><li>`annotations:type:*`</li><li>`dashboards:*`</li><li>`dashboards:uid:*`</li><li>`folders:*`</li><li>`folders:uid:*`</li></ul> |
{ .no-spacing-list }
<!-- prettier-ignore-end -->
@@ -99,7 +96,6 @@ Content-Type: application/json
- `text`: description of the annotation.
POST /api/annotations HTTP/1.1
**Example Request**:
```http
@@ -145,7 +141,6 @@ Content-Type: application/json
```
Content-Type: application/json
**Example Response**:
```http