---
title: "Install Kibana alert rule for a package"
method: POST
path: "/api/fleet/epm/packages/{pkgName}/{pkgVersion}/rule_assets"
tags: ["Elastic Package Manager (EPM)"]
---

# Install Kibana alert rule for a package

`POST /api/fleet/epm/packages/{pkgName}/{pkgVersion}/rule_assets`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/epm/packages/{pkgName}/{pkgVersion}/rule_assets</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Install Kibana alert rule assets for a specific package version.<br/><br/>[Required authorization] Route required privileges: integrations-all AND fleet-agent-policies-all.

## Path parameters

- `pkgName` string, required
- `pkgVersion` string, required

## Headers

- `kbn-xsrf` string, required

## Request body

- KibanaHTTPAPIsInstallRuleAssetsRequest
  - `force` boolean

## Response `200`

Successful response

- KibanaHTTPAPIsInstallKibanaAssetsResponse
  - `success` boolean, required

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.dev/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elastic/kibana-apis/revisions/6fcca8783738/schema)
