---
title: "Converts the submitted rule groups into Grafana-Managed Rules."
method: POST
path: "/convert/api/prom/rules"
tags: ["convert_prometheus"]
---

# Converts the submitted rule groups into Grafana-Managed Rules.

`POST /convert/api/prom/rules`

## Request

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

## Response `202`

ConvertPrometheusResponse

- ConvertPrometheusResponse
  - `error` string
  - `errorType` string
  - `status` string

## Other responses

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