Skip to content

Docs Alert example is using non-public API #663

Open
@j-svensmark

Description

In the docs there is an example of how to use the REST API to update an alert rule. The API used in the example (api/ruler/grafana/api/v1/rules) is apparently not intended for public use. Accordingly there doesn't appear to be any documentation of this API in Grafana docs. Example of the code in the docs:

    r = requests.delete(f"https://{server}/api/ruler/grafana/api/v1/rules/{folder}/{groupName}", headers=headers, verify=verify)

Would it be possible to update this example to use the alert provisioning API? https://grafana.com/docs/grafana/v10.4/developers/http_api/alerting_provisioning/

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions