---
type: api
title: Install Kibana assets for a package
description: Install Kibana assets (dashboards, visualizations, etc.) for a specific package version.<br/><br/>[Required authorization] Route required privileges: integrations-all AND fleet-agent-policies-all.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-post-fleet-epm-packages-pkgname-pkgversion-kibana-assets
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-post-fleet-epm-packages-pkgname-pkgversion-kibana-assets
products:
  - Kibana
---

# Install Kibana assets for a package

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/fleet/epm/packages/{pkgName}/{pkgVersion}/kibana_assets`

#### Path parameters

- `pkgName` (string) — required
  Package name
- `pkgVersion` (string) — required
  Package version

## Description

Install Kibana assets (dashboards, visualizations, etc.) for a specific package version.

## Required authorization

- Privileges: `integrations-all` and `fleet-agent-policies-all`

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Header parameters

- `kbn-xsrf` (string) — required
  A required header to protect against CSRF attacks

## Request body

`application/json`

- `force` (boolean) — optional
- `space_ids` (string[] · min items: 1 · max items: 100) — optional
  When provided, assets are installed in the specified spaces instead of the current space.

## Responses

#### `200`

Successful response

`application/json`

- `success` (boolean)
#### `400`

Bad Request

`application/json`

- `attributes` (object)
- `error` (string)
- `errorType` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
POST kbn:/api/fleet/epm/packages/PKG_NAME/PKG_VERSION/kibana_assets
{}
```

#### curl

```curl
curl -X POST "${KIBANA_URL}/api/fleet/epm/packages/${PKG_NAME}/${PKG_VERSION}/kibana_assets" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Response examples

#### Post install kibana assets

Kibana assets successfully installed

```json
{
  "items": [
    {
      "id": "dashboard-id-1",
      "type": "dashboard"
    }
  ]
}
```

#### Generic error response

Example of a generic error response

```json
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}
```

