---
title: "Sets the notification policy tree."
method: PUT
path: "/v1/provisioning/policies"
tags: ["provisioning"]
deprecated: true
---

# Sets the notification policy tree.

`PUT /v1/provisioning/policies`

## Request

- Base URL: `/api` (relative, and the document’s source URL is not known)
- URL: `/api/v1/provisioning/policies`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

> **Deprecated.**

## Headers

- `X-Disable-Provenance` string

## Request body

- Route: A Route is a node that contains definitions of how to handle alerts. This is modified from the upstream alertmanager in that it adds the ObjectMatchers property.
  - `active_time_intervals` string[]
  - `continue` boolean
  - `group_by` string[]
  - `group_interval` string
  - `group_wait` string
  - `match` object: Deprecated. Remove before v1.0 release.
  - `match_re` MatchRegexps
  - `matchers` Matcher[]: Matchers is a slice of Matchers that is sortable, implements Stringer, and provides a Matches method to match a LabelSet against all Matchers in the slice. Note that some users of Matchers might require it to be sorted.
    - `Name` string
    - `Type` integer
    - `Value` string
  - `mute_time_intervals` string[]
  - `object_matchers` ObjectMatcher[]
    - string[]
  - `provenance` string
  - `receiver` string
  - `repeat_interval` string
  - `routes` Route[]

## Response `202`

Ack

- Ack

## Other responses

- `400`: ValidationError
- `403`: ForbiddenError

---

[API](https://skmtc.dev/grafana/apis/grafana-http-api.md) - [All operations](https://skmtc.dev/grafana/apis/grafana-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grafana/apis/grafana-http-api/revisions/df55ba1718ba?raw)
