---
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`

> **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.net/grafana/apis/http-api.md) · [All operations](https://skmtc.net/grafana/apis/http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/grafana/http-api/versions/df55ba1718ba/schema)
